gpt4 book ai didi

postgresql - JBoss 日志 Postgres 驱动是 "non-JDBC-compliant"

转载 作者:行者123 更新时间:2023-11-29 11:26:38 25 4
gpt4 key购买 nike

我将我的 JBoss 服务器连接到一个新的 Postgres 数据库。

在 standalone.xml 中:

<driver name="postgresql" module="com.postgresql.pgjdbc">
<driver-class>org.postgresql.Driver</driver-class>
</driver>

在 module.xml 中:

<module xmlns="urn:jboss:module:1.1" name="com.postgresql.pgjdbc">
<resources>
<resource-root path="postgresql-9.3-1102.jdbc41.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>

启动 JBoss 时,我得到以下日志条目:

10:49:57,206 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 25) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.3)

驱动程序似乎确实可以连接并工作。这种不合规的影响是什么?

最佳答案

根据这个 JBoss 论坛条目 none: Why is my JDBC4-compliant driver loaded as "non-JDBC-compliant"?

Because org.postgresql.Driver#jdbcCompliant() returns false. So you can ignore that for now, and I'm sure that the PostgreSQL JDBC people would like code contributions

和源代码:

 /**
* Report whether the driver is a genuine JDBC compliant driver. A
* driver may only report "true" here if it passes the JDBC compliance
* tests, otherwise it is required to return false. JDBC compliance
* requires full support for the JDBC API and full support for SQL 92
* Entry Level.
*
* <p>For PostgreSQL, this is not yet possible, as we are not SQL92
* compliant (yet).
*/
public boolean jdbcCompliant()
{
return false;
}

https://github.com/pgjdbc/pgjdbc/blob/REL9_3_1102/org/postgresql/Driver.java.in

这是 TODO 列表的一部分 http://jdbc.postgresql.org/development/todo.html#Compliance

关于postgresql - JBoss 日志 Postgres 驱动是 "non-JDBC-compliant",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27108923/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com