Closed jiangtao69039 closed 1 year ago
Hi @jiangtao69039 ~ Thanks for opening this issue! 🎉
Please make sure you have provided enough information for subsequent discussion.
We will get back to you as soon as possible. ❤️
@jiangtao69039 What version of JDBC are you using? You should use the JDBC version which is the same as PostgreSQL, because we are 100% compatible with PostgreSQL. nestedtable_in
seems not to be a PostgreSQL proc type.
I use polardb-jdbc18.jar connect to polardb, url format is "jdbc:polardb://"
The exception is reported by the driver jar. It is marked on the picture.
The version detected by polardb here is 11.9, which is larger than 9.2. So 'nestedtable_in' is used here.
@jiangtao69039 You should use the driver here, which is the 100% PostgreSQL driver. The PolarDB JDBC driver you are using is actually for PolarDB for PostgreSQL (with Oracle Compability), which is not the version here.
Yes, the statement of the query type in the pg driver will not report an error. But what I am wondering is why polardb has problems with polardb drivers
@jiangtao69039 As you can see here:
The driver you have downloaded should come from the document of the 4th one, which is PolarDB for PostgreSQL (with Oracle Compability). And current repository contains the code of the 3rd one, which is PolarDB for PostgreSQL, 100% compact with PostgreSQL. They are different versions. For connecting to PolarDB-PG in this repository, the JDBC of PostgreSQL is just enough. The PolarDB driver you have downloaded is not 100% compact with PostgreSQL.
/close
Describe the bug 创建一个带有interval列类型的表,然后通过jdbc查询,会报异常.
通过jdbc驱动调用 ResultSetMetaData.getColumnType(i) 或者 ResultSet.getObject(i) 均会报 " function "nestedtable_in" does not exist 位置:49" 这个异常.
驱动里getPGtype能正常返回 interval
但是getSQLType报错, 报错原因是 驱动执行下面的查询语句 .