Version information
- Release date: December 02, 2021
- Version: V2.2.7
Overview
OceanBase Connector/J V2.2.7 is fully compatible with the COM_STMT_PREPARE_EXECUTE protocol and the SEND PIECE feature that is based on the protocol. This version applies to general businesses.
Feature enhancements
- In Oracle mode, the
SEND PIECEfeature is disabled by default. You can configureuseServerPrepStmts=true&usePieceData=truein the URL to enable this feature. - In Oracle mode, the
COM_STMT_PREPARE_EXECUTEprotocol supports batch execution. - In Oracle mode, the performance of the
PreparedStatement.setBytes()method is optimized. For example, the time consumed for processing 32 KB data is reduced from 60 ms to 15 ms. - The limitations on
FetchSizeare adjusted forStatementobjects. - The conditions for using
useCursorFetchto retrieve the result set are adjusted. - Streaming read is no longer supported in Oracle mode, which is consistent with native Oracle.
- A placeholder in the
nameformat will be automatically converted into a question mark (?) for objects that are not procedures or functions. - The default value of
cachePrepStmtsis changed tofalse, which is consistent with MySQL Java Database Connectivity (JDBC).
Bug fixes
- Fixed the issue where the data returned by the
stmt.setBinaryStream()method is incomplete for RAW queries in Oracle mode. - Fixed the issue where an error is returned when the
setClob()method usesEMPTY_CLOB()as a parameter in Oracle mode. - Fixed the issue where an error is returned when
Localdatetimeis used together with a timestamp. - Fixed the issue where field mapping errors occur if column aliases are used in a MyBatis environment.
- Fixed the issue where, if a CLOB is inherited from a BLOB, a type judgment error occurs when the
getObject()method is called. - Fixed the issue where errors occur when OceanBase Connector/J is connected to OceanBase Database Proxy (ODP) by using the
COM_STMT_SEND_PIECE_DATAprotocol. - Fixed the issue where an error is returned if the data type of a CLOB column is set to
StringwhengetObject()is called. - Fixed the issue where an error is returned if
usePipelineAuth=trueis configured. - Fixed the issue where errors related to the
rewriteBatchparameter occur. - Fixed the issue where
setPortinOceanBaseDataSourcedoes not take effect. - Fixed the issue where uploading will fail if a CLOB column contains single quotation marks (').
- Fixed the issue where hints are commented out in Oracle mode.