-
由 Philippe Marschall 提交于
Currently java.sql.Array is only supported when returned from the database. Passing arrays to the database is not supported. Connection#createArrayOf, PreparedStatement#setArray and PreparedStatement#setObject with a java.sql.Array are not supported. This pull requests implements passing java.sql.Array objects to the database and includes the following changes: - implement Connection#createArrayOf - implement PreparedStatement#setArray - implement array support in ResultSet#getObject - implement conversion from java.sql.Array to Value - update DataType#convertTo to support arrays as well - add tests for #createArrayOf, #setArray and #setObject - add tests for #getObject with an array argument - remove the test for Connection#createArrayOf being unsupported - remove the test for PreparedStatement#setArray being unsupported The typeName passed to #createArrayOf is ignored, this is in accordance with JdbcArray#getBaseTypeName returning "NULL" and JdbcArray#getBaseType returning Types.NULL even if the backing array is homogeneous.
790cf87b
名称 |
最后提交
|
最后更新 |
---|---|---|
.. | ||
.mvn/wrapper | ||
service | ||
src | ||
.gitattributes | ||
.gitignore | ||
MAVEN.md | ||
build.bat | ||
build.sh | ||
mvnw | ||
mvnw.cmd | ||
pom.xml |