Skip to content

Commit

Permalink
SQL Struct with @lob (BLOB, CLOB) used as stored procedure parameter …
Browse files Browse the repository at this point in the history
…type - fix (#1336)

Additional fix in Oracle12Platform class to use standard java.sql.Connection.createStruct() method.

Signed-off-by: Radek Felcman <radek.felcman@oracle.com>
  • Loading branch information
rfelcman committed Oct 1, 2021
1 parent 706e233 commit 693d6d4
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,18 @@ public Struct createStruct(String structTypeName, Object[] attributes, AbstractR
attributes[index] = row.get(field);
}
}
return super.createStruct(structTypeName, attributes, session, connection);
return createStruct(structTypeName, attributes, connection);
}

/**
* Create java.sql.Struct from given parameters.
* @param structTypeName - the SQL type name of the SQL structured type that this Struct object maps to.
* @param attributes - the attributes that populate the returned object
* @param connection - DB connection
* @return Struct
*/
@Override
public Struct createStruct(String structTypeName, Object[] attributes, Connection connection) throws SQLException {
return connection.createStruct(structTypeName, attributes);
}
}

0 comments on commit 693d6d4

Please sign in to comment.