#1692: postgres libraries don't work from foreign HLLs
---------------------+------------------------------------------------------
Reporter: moritz | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: library | Version: 2.5.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
---------------------+------------------------------------------------------
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.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1692>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets