clickhouse-java icon indicating copy to clipboard operation
clickhouse-java copied to clipboard

[JDBC] PreparedStatementImpl

Open chernser opened this issue 6 months ago • 0 comments

Description

There are some issues:

  • executeQuery() - Doesn't check if all parameters are set
  • executeUpdate() - Doesn't check if all parameters are set
  • setBytes(int parameterIndex, byte x[]) - Test ignored, implementation will incorrectly encode into string
  • setObject(int parameterIndex, Object x, int targetSqlType) - target type is ignored
  • setObject(int parameterIndex, Object x, SQLType targetSqlType) - target type is ignored
  • setNString(int parameterIndex, String value) - no tests
  • setNCharacterStream(int parameterIndex, Reader value, long length) - length seems ignored
  • setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) - scaleOrLength ignored
  • setObject(int parameterIndex, Object x, SQLType targetSqlType) - type ignored

chernser avatar Jun 04 '25 03:06 chernser