-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement createArrayOf and setArray
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.
- Loading branch information
Showing
8 changed files
with
157 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters