urir
urir

Reputation: 2015

MySql jdbc driver loaded as version 3 instead of version 4

Driver version: mysql-connector-java-5.1.7

After some code loading the driver, there is a check

Connection con = getConnection();
DatabaseMetaData meta = con.getMetaData();
System.out.println("JDBC major version: " + meta.getJDBCMajorVersion());

And output shows JDBC major version: 3

2 questions:

  1. How do I make it work as if it was version 4?
  2. Does it really matter?

Upvotes: 0

Views: 82

Answers (1)

urir
urir

Reputation: 2015

Answering my own question: there is a bug in this version :(
Bug #55217 DatabaseMetaData.getJDBCMajorVersion() returns 3 instead of 4

Upvotes: 1

Related Questions