为什么我的 DBI 程序抱怨“未定义的子例程 &DBD::Pg::db::_login”?
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回顾历史,在包
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 packageDBD::Pg::db
(which is defined in Pg.pm), and the invocation is explicitlyDBD::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.