Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

DBI: DBD::Sponge cannot initialize under PerlOnJava

オープン
#1,398 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
perl
領域
databases

調査の方向性

DBI->install_driver("Sponge") から開始し、DBD::Sponge::driver まで追跡します。DBD::Sponge::db が install_method をどのように継承または解決するかに注目してください。PerlOnJava の互換性レイヤーと pure-Perl のハンドル継承を比較し、その後、両方のバックエンドで t/01-connect.t と t/02-reconnect.t を実行します。PerlOnJava 上で upstream suite が成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug

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.t
  • t/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.

主要言語
Perl
スター
64
フォーク
7
平均マージ
4時間 27分
マージ済み PR(30日)
178

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fglock/PerlOnJava のほかの issue

fglock/PerlOnJava の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。