DBI: DBD::Sponge cannot initialize under PerlOnJava
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start at DBI->install_driver("Sponge") and trace into DBD::Sponge::driver, focusing on how DBD::Sponge::db inherits or resolves install_method. Compare the PerlOnJava compatibility layer with the pure-Perl handle inheritance, then run t/01-connect.t and t/02-reconnect.t on both backends; done means the upstream suite passes under PerlOnJava.
Written by the indexing model from the issue text.
Description
Summary
MooX::Role::DBIConnection 0.07 fails its connection tests under PerlOnJava because the bundled pure-Perl DBD::Sponge driver cannot initialize.
Reproduction
CPAN random tester run: 20260916-111623-23683
Affected upstream tests:
t/01-connect.tt/02-reconnect.t
Both fail on the JVM backend and the interpreter backend when the tests use the dbi:Sponge: DSN.
The failure is reported as:
Can't connect to data source '' because I can't work out what driver to use
The minimal driver initialization path is DBI->install_driver("Sponge"), which reaches DBD::Sponge->driver and fails because DBD::Sponge::db->install_method is unavailable.
Expected result
The upstream suite passes completely under system Perl: 3 test files and 6 tests successful.
Actual result
PerlOnJava fails 2 of 3 test programs; t/00-load.t passes. DBD::Sponge is bundled with PerlOnJava and can be loaded directly, so this is not a missing CPAN dependency or an external database prerequisite.
Suspected cause
The PerlOnJava DBI compatibility layer defines install_method on DBD::_::common, but the pure-Perl database-handle inheritance used by DBD::Sponge::db does not expose that method through its DBD::_::db base. Align the pure-Perl DBI handle inheritance or otherwise provide the upstream-compatible method dispatch.
This affects both execution backends and should have focused regression coverage for connecting through dbi:Sponge: and reconnecting.
- Dominant language
- Perl
- Stars
- 64
- Forks
- 6
- Avg merge
- 5h 11m
- Merged PRs (30d)
- 168
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fglock/PerlOnJava
-
area:cpan-port area:unicode bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
fglock/PerlOnJava#1341 ·
-
area:backend area:runtime enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
fglock/PerlOnJava#1494 ·
-
area:backend area:runtime enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
fglock/PerlOnJava#1492 ·
-
area:parser bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
fglock/PerlOnJava#1491 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
fglock/PerlOnJava#1487 ·
All issues in fglock/PerlOnJava
Similar issues
-
documentation Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
trizen/youtube-viewer#456 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
connectivity Open
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Common US ingredient names are not recognized, so about 12.4k US products miss an allergen warning Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openfoodfacts/openfoodfacts-server#14657 · 4 comments ·