Version information
Release date: February 09, 2023
Version number: V2.4.2
Overview
OceanBase Connector/J V2.4.2 is released to improve load balancing capabilities by retrieving ODP configuration information from OCP. It also fixes compatibility issues and defects related to the OB2.0 protocol. This version is recommended for regular business use.
Feature enhancements
- Added a method to retrieve ODP configuration information from OCP, enhancing load balancing capabilities. The following URL parameters are added:
Option |
Meaning |
Default Value |
|---|---|---|
| ocpAccessInterval | Interval for Accessing OCP (minutes) | 5 |
| httpConnectTimeout | Sets the specified timeout value (in milliseconds) to be used when opening a communication link to a resource referenced by this URLConnection. | 0 (Infinity) |
| httpReadTimeout | When a URLConnection is established to a resource, a non-zero value specifies the timeout period (in milliseconds) for reading from the input stream. | 0 (Infinity) |
Bug fixes
- Fixed an issue where the behavior of the getImportedKeys interface was incompatible with MySQL in MySQL-compatible mode.
- Fixed an issue where the export behavior was incompatible with MySQL when a DATATIME type field was set to "0000-00-00 00:00:00" in MySQL-compatible mode.
- Fixed an issue where using the binary protocol in Oracle-compatible mode caused an error when getting a
FLOATvalue using getDouble. - Fixed an issue where an error occurred in the driver because the internal SQL statement of the getBestRowIdentifier interface did not include
ORDER BY. - Fixed an issue where the load balancing strategy within a URL extension Option configuration group did not take effect.
- Fixed an issue where arrays containing
BLOBwere not supported in Oracle-compatible mode. - Fixed an issue where interfaces such as
SELECT ' 'andgetShort()returned errors in MySQL-compatible mode, which were inconsistent with the native driver. - Fixed an issue where the return value of the
ResultSetMetaData.getColumnName()interface was inconsistent with the native driver in MySQL-compatible mode. - Fixed an issue where inserting rows using a composite index succeeded but a
SELECTstatement returned an error in MySQL-compatible mode. - Fixed an issue where, after closing a result set, the behavior of
getMetaData()was inconsistent with the native driver in MySQL/Oracle compatible modes. - Fixed an issue where, after closing a result set, the behavior of
getInt()was inconsistent with the native driver in MySQL/Oracle compatible modes. - Fixed an issue where the return value of the ParameterMetaData interface was inconsistent with the native driver in MySQL-compatible mode.
- Fixed an issue where passing the client IP through was caused by getLocalAddress returning '0.0.0.0' in the rich client.
