Hi,
Is anybody using the MySQLAdaptor against a mariadb?
Basically, using the MySQLAdaptor + mysql-connector-java jdbc connector ->
mariadb works fine.
Except, when we upgrade the mysql-connector-java from version 5.1.6 to modern
version 8.0.28, we get the nasty
> Invocations of setNanos() are illegal.
> java.lang.IllegalStateException: com.webobjects.foundation.NSTimestamp is an
> immutable object. Invocations of setNanos() are illegal.
exceptions.
Using the sendFractionalSeconds=false parameter in the connections string
works only for real MySql-Database, not for a mariadb :-(
My current approach is, to enhance the MySQLPlugIn to be used along with both
mysql-connector-java and mariadb-java-client jdbc connectors.
The changes are basically:
* set _MySQLPlugIn.DriverClassName = null (as since JDBC 4.0 the driver class
is no longer needed to open a jdbc connection.)
* also register the _MySQLPlugIn for the mariadb subprotocol
Does this sound reasonable?
Regards
René
--
Phone: +49 69 650096 18
salient GmbH // Lindleystraße 12 // 60314 Frankfurt
Amtsgericht Frankfurt am Main // salient GmbH HRB 48693
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]