Version information
- Release date: May 31, 2024
- Version: V2.4.11
Overview
OceanBase Connector/J V2.4.11 supports the SDO_GEOMETRY data type, implements the setMaxRows() method, and provides the mapDateToTimeStamp parameter in Oracle mode to enhance its compatibility with Oracle JDBC drivers.
Feature enhancements
The complex data type
SDO_GEOMETRYis supported in Oracle mode.The
mapDateToTimeStampparameter is supported in Oracle mode. You can use this parameter to configure the display mode of data of the DATE type. WhenmapDateToTimeStamp=falseis configured, date field values returned by thegetString()method contain only the date part, such as "2023-10-24". By default, the values are returned in the "2023-10-24 00:00:00" format.The
setMaxRows()method can be used to specify the number of rows to be returned in the result set in Oracle mode.
New URL parameters
| Parameter | Status | Default value | Description |
|---|---|---|---|
| mapDateToTimeStamp | New | true | It is a parameter specific to OceanBase Connector/J. It specifies whether to map the DATE data type to the TIMESTAMP data type. When you set the parameter to true, DATE data contains both date and time (accurate to seconds) parts in Oracle mode. When you set the parameter to false, DATE data contains only the date part. |
Bug fixes
- Fixed the issue where compiling a stored procedure returns an error indicating that the type is not declared, even if the type already exists.
- Fixed the issue where the
Round Necessaryexception is thrown when theResultSet#getBigDecimal()method is used.