Comments - About MariaDB Connector/J

9 years, 1 month ago Azzouz Nezar
This comment has the status of 'removed' and can only be seen by you.

I have located a PC that I do not use to install MariaDB. I downloaded version 5.5.5-10.16. The database works well with the application (see above). I checked mostly every think this app needs. But only one thing I could not do : check primary key and auto-increment of a table. I used client mariadb-java-client-1.1.3 & 1.1.7 When I used mysql drivers mysql-connctor-java-3.1.14 and 5.0.8, I get the primary key but still no auto-increment.

As for the code: I use method getString() in ResultSet class to get the auto-increment (Syntax I use : rset.getString(12)) As for the Primary key I use getPrimaryKeys method in DatabseMetaData class, then method getString("PK_NAME").

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.