为什么我的 DBI 程序抱怨“未定义的子例程 &DBD::Pg::db::_login”?

发布于 2024-07-14 03:12:54 字数 297 浏览 8 评论 0原文

我正在尝试使用 PostgreSQL 数据库来存储 Apache 的会话信息,但我无法让它工作。 它失败并出现以下错误:

 Undefined subroutine &DBD::Pg::db::_login

MySQL 用户似乎在 DBD::MySQL::db 中遇到了同样的问题。 我有 DBI 和 DBD::Pg 的最新 CPAN 版本。 模块中似乎没有 _login 函数。 有什么想法可以解决这个问题吗? 我感谢您的帮助!

谢谢

I am trying to use PostgreSQL database for storing Apache's session information, but I can't get it to work. It is failing with the following error:

 Undefined subroutine &DBD::Pg::db::_login

It seems that MySQL users have run into the same problem in DBD::MySQL::db. I have the latest CPAN version of both DBI and DBD::Pg. It doesn't seem that the _login function is there in the module. Any ideas how to get around this problem? I appreciate your help!

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

‖放下 2024-07-21 03:12:54

回顾历史,在包 DBD::Pg::db 中从未定义过名为 _login 的 Perl 方法(在 Pg.pm 中定义),并且调用是明确的DBD::Pg::db::_login()

这是一个猜测,但我认为 _login 是一个通过 XS 绑定的 C 函数,这就是为什么你在模块中找不到它的源代码。 这表明它尝试使用的 Postgres 库存在一些问题。

Browsing back through the history, there has never been a Perl method named _login defined in the package DBD::Pg::db (which is defined in Pg.pm), and the invocation is explicitly DBD::Pg::db::_login().

This is a guess, but I think that _login is a C function that's bound through XS, and that's why you can't find its source in the module. That would indicate some problem with the Postgres library that it's trying to use.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文