Bug #11874 | ResultSet getInt method gives wrong value for small int column in database | ||
---|---|---|---|
Submitted: | 12 Jul 2005 4:13 | Modified: | 10 Mar 2006 20:24 |
Reporter: | Anindya Mozumdar | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | mysql connector 3.1.10 | OS: | Linux (Linux) |
Assigned to: | Aleksey Kishkin | CPU Architecture: | Any |
[12 Jul 2005 4:13]
Anindya Mozumdar
[12 Jul 2005 6:09]
Aleksey Kishkin
at least on windows it works properly. Plan to test on linux. Attached testcase that I used .Loading JDBC driver 'com.mysql.jdbc.Driver' Done. Done. Connected to 4.1.12a-nt 1 Time: 0,5 OK (1 test)
[12 Jul 2005 6:09]
Aleksey Kishkin
test case
Attachment: Bug11874.java (text/java), 872 bytes.
[12 Jul 2005 8:18]
Anindya Mozumdar
Since you have said that it works for Windows, here are a few more details: 1. I am using RedHat Linux 9. 2. Also, please not the version of the connector I am using is 3.1.10. Here are the exact commands I entered in the command prompt. [anindya@Narmada anindya]$ java -classpath mysql-connector-java-3.1.6-bin.jar:. Test 1 [anindya@Narmada anindya]$ java -classpath mysql-connector-java-3.1.10-bin.jar:. Test 65537
[12 Jul 2005 12:23]
Mark Matthews
Known issue, already fixed for 3.1.11, see nightly snapshots at http://downloads.mysql.com/snapshots.php#connector-j
[12 Jul 2005 12:23]
Mark Matthews
Known issue, already fixed for 3.1.11, see nightly snapshots at http://downloads.mysql.com/snapshots.php#connector-j
[27 Nov 2005 7:23]
Ralf Hauser
it again happens to me with mysql-connector-java-3.1-nightly-20051124-bin.jar and mysql --version mysql Ver 14.7 Distrib 4.1.11, for pc-linux-gnu (i386) on Debian Linux 2.4.27 #3 Mon Nov 15 13:15:32 CET 2004 i686 GNU/Linux
[28 Nov 2005 1:45]
Mark Matthews
Ralph, We have testcase coverage for this, so we'd like to see a testcase from you to figure out what's going on in this case, as either you're in a new code path we didn't account for, or you're actually picking up an old version of the driver somewhere in your classpath.
[10 Dec 2005 17:40]
Elie Naulleau
I have to report the same problem. Starting point : an Java application running on WinXP/MySQL 4.1.12a-nt, JDK 1.5_04 :task inserting INT and BIGINT(20) into a MySQL table, using a prepared statement. The application runs fine. The same application is tested under Linux : inserted integer values got transformed to crazy values (looking like {INT}.max_values). Config : Mandrake 2006 Free, JDK 1.5._06, Mysql 4.1.12 noteworthy : this happens whatever Connector/J version I use : 3.1.10, .3.2, latest night build.
[20 Dec 2005 19:39]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/297
[20 Dec 2005 19:52]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/299
[29 Dec 2005 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[10 Mar 2006 20:24]
Mark Matthews
Fix will be available in 5.0.1 and 3.1.13. You can try a nightly snapshot from http://downloads.mysql.com/snapshots.php#connector-j if you want to test the fix before it's officially released. Thanks for the bug report.