id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	lang	patch	platform
1692	postgres libraries don't work from foreign HLLs	moritz		"This works without error:

{{{
.sub main :main
    load_bytecode 'Pg.pir'
    $P0 = new 'Pg'
    $P1 = $P0.'connectdb'('')
.end
}}}

But this dies:
{{{
.HLL 'foo'
.sub main :main
    load_bytecode 'Pg.pir'
    $P0 = new 'Pg'
    $P1 = $P0.'connectdb'('')
.end
}}}

Error:

{{{
Null PMC access in invoke()
current instr.: 'foo;Pg;Conn;status' pc 137 (/home/moritz/rakudo/parrot_install/lib/2.5.0-devel/library/Pg.pir:150)
called from Sub 'foo;Pg;connectdb' pc 55 (/home/moritz/rakudo/parrot_install/lib/2.5.0-devel/library/Pg.pir:86)
called from Sub 'main' pc 12 (foo.pir:5)
}}}

Either Pg should be in the 'parrot' HLL, and needs explicit calling, or it should work anywhere it is included."	bug	reopened	normal		library	2.5.0	medium						
