Bug #2607 | Driver returns autoincrement for int fields with mysql 4.1 | ||
---|---|---|---|
Submitted: | 2 Feb 2004 5:10 | Modified: | 2 Feb 2004 6:55 |
Reporter: | Norbert Zawodsky | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 3.1.0 | OS: | Linux (Linux Intel) |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
[2 Feb 2004 5:10]
Norbert Zawodsky
[2 Feb 2004 5:12]
Norbert Zawodsky
testcase
Attachment: db_connect.java (application/octet-stream, text), 937 bytes.
[2 Feb 2004 6:55]
Mark Matthews
I can't repeat this with MySQL-4.1.1 and the nightly snapshot of Connector/J 3.1 (from http://downloads.mysql.com/snapshots.php) with the following testcase: public void testBug2607() throws Exception { try { this.stmt.executeUpdate("DROP TABLE IF EXISTS testBug2607"); this.stmt.executeUpdate("CREATE TABLE testBug2607 (field1 INT PRIMARY KEY)"); this.rs = this.stmt.executeQuery("SELECT field1 FROM testBug2607"); ResultSetMetaData rsmd = this.rs.getMetaData(); assertFalse(rsmd.isAutoIncrement(1)); } finally { this.stmt.executeUpdate("DROP TABLE IF EXISTS testBug2607"); } }