• Philippe Marschall's avatar
    Implement createArrayOf and setArray (#418) · 790cf87b
    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
名称
最后提交
最后更新
h2 Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...