Bug #14038 | Prepared Statement Gives Bad Value on x86_64 | ||
---|---|---|---|
Submitted: | 14 Oct 2005 19:41 | Modified: | 6 Jun 2006 20:14 |
Reporter: | Richard Harms | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | MySQL 5.0.13-rc, Connector/J 3.1.10 | OS: | Linux (Fedora Core 4, x86_64) |
Assigned to: | CPU Architecture: | Any |
[14 Oct 2005 19:41]
Richard Harms
[14 Oct 2005 20:21]
Richard Harms
Retested with Connector/J 3.1.11, problem still occurs. Adding "useServerPrepStmts=false" to the connection URL allows the test to work correctly.
[16 Oct 2005 7:08]
Vasily Kishkin
Sorry....I was unable to reproduce the bug on MySQL 5.0.14-rc and connector 3.1.10. The result is follow: mysql> select * from entityids; +----------------+-------------+---------------------+ | eid_entityname | eid_lasteid | eid_dbtimestamp | +----------------+-------------+---------------------+ | TestEntityName | 50 | 2005-10-16 13:03:59 | +----------------+-------------+---------------------+ 1 row in set (0.00 sec) Could you please re-test your test case on MySQL 5.0.14rc ?
[16 Oct 2005 16:21]
Richard Harms
It doesn't appear as though 5.0.14 is on the downloads page yet. Do you want me to just use the current snapsnot of 5.0 (dated 11-Oct-2005), or use bk to pull the latest version available through it?
[18 Oct 2005 7:11]
Vasily Kishkin
You can use snapshot from URL : http://downloads.mysql.com/snapshots.php
[18 Oct 2005 19:17]
Richard Harms
Same problem with 5.0.16-nightly-20051017.
[17 Nov 2005 13:50]
Mark Matthews
Can you generate a testcase script by adding "autoGenerateTestcaseScript=true" to your JDBC URL, and then running that script against your server using the "mysql" command line client, and let us know if the error shows there as well?
[17 Nov 2005 15:28]
Richard Harms
/* conn id 0 */ SET NAMES utf8; /* conn id 0 */ SET character_set_results = NULL; /* conn id 0 */ SHOW VARIABLES; /* conn id 0 */ SHOW COLLATION; /* conn id 0 */ SET autocommit=1; /* conn id 0 */ PREPARE debug_stmt_3 FROM "INSERT INTO entityids (eid_entityname, eid_lasteid) VALUES (?, ?)"; /* conn id 0 */ SET @debug_stmt_param3_0='TestEntityName'; /* conn id 0 */ SET @debug_stmt_param3_1=50; /* conn id 0 */ EXECUTE debug_stmt_3 USING @debug_stmt_param3_0, @debug_stmt_param3_1; /* conn id 0 */ DEALLOCATE PREPARE debug_stmt_3; Results: mysql> select * from entityids; +----------------+-------------+---------------------+ | eid_entityname | eid_lasteid | eid_dbtimestamp | +----------------+-------------+---------------------+ | TestEntityName | 50 | 2005-11-17 09:24:03 | +----------------+-------------+---------------------+ 1 row in set (0.00 sec) Works properly when used with the mysql command line client.
[5 Jun 2006 11:07]
Tonci Grgin
Hi Richard. I'm having troubles compiling test case under FC5 x64. When I compile test case under Win32 and run against network MySQL server on FC5 x64, test case succedes. Leaving report in "Analyzing" state until compilation under FC5 x64 succedes.
[6 Jun 2006 7:31]
Valeriy Kravchuk
Please, try to repeat with the latest version of Connector/J, 3.1.13, and latest version of MySQL server (!), 5.0.22. Inform about the results. I was unable to repeat with these versions and jdk1.5.0_07 for AMD64, on WinXP 64-bit as client platform. Your test gave me: mysql> select * from entityids; +----------------+-------------+---------------------+ | eid_entityname | eid_lasteid | eid_dbtimestamp | +----------------+-------------+---------------------+ | TestEntityName | 50 | 2006-06-06 10:15:34 | +----------------+-------------+---------------------+ 1 row in set (0.00 sec) Just as expected.
[6 Jun 2006 19:45]
Richard Harms
Retested with jdk 1.5.0_05, MySQL 5.0.22, and Connector/J 3.1.13, and it does appear to be working correctly now. Also tested the larger application that the test code was extracted from, and it is working correctly as well.
[6 Jun 2006 20:04]
Tonci Grgin
Richard, glad it works. I will close this report now. If you expirience reported problem again, please reopen it.