Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

DBI: DBD::Sponge cannot initialize under PerlOnJava

Đang mở
#1,398 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
perl
Lĩnh vực
databases

Hướng nghiên cứu

Bắt đầu tại DBI->install_driver("Sponge") và lần theo đến DBD::Sponge::driver, tập trung vào cách DBD::Sponge::db kế thừa hoặc phân giải install_method. So sánh lớp tương thích PerlOnJava với cơ chế kế thừa handle bằng Perl thuần, sau đó chạy t/01-connect.t và t/02-reconnect.t trên cả hai backend; được xem là hoàn tất khi bộ kiểm thử upstream chạy thành công dưới PerlOnJava.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Perl
Star
64
Fork
6
Merge trung bình
5 giờ 38 phút
Pull request đã merge (30 ngày)
170

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fglock/PerlOnJava

Tất cả issue của fglock/PerlOnJava

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.