Bug #41416 | connector/j spits out 'invalid value' when no auto_increment_increment | ||
---|---|---|---|
Submitted: | 12 Dec 2008 2:03 | Modified: | 16 Jul 2009 13:25 |
Reporter: | marc slemko | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.7 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Dec 2008 2:03]
marc slemko
[12 Dec 2008 9:19]
Tonci Grgin
Hi and thanks for your report. Verified as described looking into c/J 5.1 sources: ConnectionImplementation.java, line 3416: if (versionMeetsMinimum(3, 21, 22)) { loadServerVariables(); this.autoIncrementIncrement = getServerVariableAsInt("auto_increment_increment", 1); There should be a condition as in line 3855: if (versionMeetsMinimum(5, 0, 2)) { results = stmt.executeQuery(versionComment + "SELECT @@session.auto_increment_increment");
[3 Jul 2009 12:47]
Mark Matthews
Fixed for 5.1.8.
[16 Jul 2009 13:25]
Tony Bedford
An entry was added to the 5.1.8 changelog: When using Connector/J 5.1.7 to connect to MySQL Server 4.1.18 the following error message was generated: Thu Dec 11 17:38:21 PST 2008 WARN: Invalid value {1} for server variable named {0}, falling back to sane default of {2} This occurred with MySQL Server version that did not support auto_increment_increment. The error message should not have been generated.