Skip to content

Commit 71e4c6b

Browse files
committed
Fix for property description 'ConnectionProperties.treatMysqlDatetimeAsTimestamp'.
Change-Id: I7e2cacf5a0d1837bf06c493b02d6717e660263df
1 parent bae6356 commit 71e4c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,8 @@ ConnectionProperties.tlsVersions=List of TLS protocols to allow when establishin
979979
ConnectionProperties.traceProtocol=Should the network protocol be logged at the TRACE level?
980980
ConnectionProperties.trackSessionState=Receive server session state changes on query results. These changes are accessible via ''MysqlConnection.getServerSessionStateController()''.
981981
ConnectionProperties.transformedBitIsBoolean=If the driver converts TINYINT(1) to a different type, should it use BOOLEAN instead of BIT?
982-
ConnectionProperties.treatMysqlDatetimeAsTimestamp=Should the driver treat the MySQL DATETIME type as TIMESTAMP for the purposes of ''ResultSet.getObject()''? Enabling this option changes the default MySQL type to Java mapping for DATETIME, from ''java.time.LocalDateTime'' to ''java.sql.Timestamp''. Given the nature of the DATETIME type and its inability to represent instant values, it is not advisable to enable this option unless the driver is used with a framework or API that expects exclusively objects from the default database to Java types mapping, which is the case of, for example, ''javax.sql.rowset.CachedRowSet''.
983-
ConnectionProperties.treatUtilDateAsTimestamp=Should the driver treat ''java.util.Date'' as a TIMESTAMP for the purposes of ''PreparedStatement.setObject()''?
982+
ConnectionProperties.treatMysqlDatetimeAsTimestamp=Should the driver treat the MySQL DATETIME type as TIMESTAMP in ''ResultSet.getObject()''? Enabling this option changes the default MySQL data type to Java type mapping for DATETIME from ''java.time.LocalDateTime'' to ''java.sql.Timestamp''. Given the nature of the DATETIME type and its inability to represent instant values, it is not advisable to enable this option unless the driver is used with a framework or API that expects exclusively objects following the default MySQL data types to Java types mapping, which is the case of, for example, ''javax.sql.rowset.CachedRowSet''.
983+
ConnectionProperties.treatUtilDateAsTimestamp=Should the driver treat ''java.util.Date'' as a TIMESTAMP in ''PreparedStatement.setObject()''?
984984
ConnectionProperties.trustCertificateKeyStorePassword=Password for the trusted root certificates key store.
985985
ConnectionProperties.trustCertificateKeyStoreType=Key store type for trusted root certificates.[CR]Null or empty means use the default, which is "JKS". Standard key store types supported by the JVM are "JKS" and "PKCS12", your environment may have more available depending on what security providers are installed and available to the JVM.
986986
ConnectionProperties.trustCertificateKeyStoreUrl=URL for the trusted root certificates key store.[CR]If not specified, the property ''fallbackToSystemTrustStore'' determines if system-wide trust store is used.

0 commit comments

Comments
 (0)