Bug #11628 | PreparedStatement returns wrong result set | ||
---|---|---|---|
Submitted: | 29 Jun 2005 6:00 | Modified: | 14 Jul 2005 7:37 |
Reporter: | Irina Tchernouchina | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 3.1.7, 3.1.10 | OS: | Windows (Microsoft Windows XP,) |
Assigned to: | CPU Architecture: | Any |
[29 Jun 2005 6:00]
Irina Tchernouchina
[29 Jun 2005 13:25]
Mark Matthews
Do you get the results you expect if you configure server-side prepared statements to not be used by setting "useServerPrepStmts=false" in your URL? (if so, it's a server bug).
[30 Jun 2005 7:30]
Irina Tchernouchina
Yes, with "useServerPrepStmts=false" everything works fine:)
[30 Jun 2005 8:05]
Aleksey Kishkin
what mysql version do you use?
[30 Jun 2005 8:21]
Irina Tchernouchina
4.1.10-nt
[1 Jul 2005 11:32]
Aleksey Kishkin
(in order to reproduce this bug) could you please attach table definitions and (if possible) some example data.
[1 Jul 2005 13:53]
Irina Tchernouchina
I've just added the query and involved tables dump.
[5 Jul 2005 7:30]
Vasily Kishkin
Sorry I was not able to reproduce the bug on 4.1.13. My result is : 1008 0 0 1.0 null null 2801 102123 5797 1 a 5239 0 0 1 null 1009 0 0 1.0 null null 2801 102124 5796 1 a 5238 0 0 1 null 1501 0 0 1.0 null null 2202 103910 5853 1 1-omr 5303 0 0 1 null Could you please run my test case on your computer? I attached the test case in "Files".
[5 Jul 2005 7:31]
Vasily Kishkin
Test case
Attachment: test.java (text/java), 2.33 KiB.
[14 Jul 2005 5:17]
Irina Tchernouchina
Hi Vasily. Sorry for delay. We proceed the test you sent and it works OK. The problem is only under Weblogic 8.1. When JDBC calls are done from stateless session bean, we get our error. We are not sure whether it's Weblogic or MySQL error and unfortunately we have no time for this problem now. We just refused to use prepared statements at the moment.
[14 Jul 2005 7:37]
Vasily Kishkin
Sorry...As far as I can understand it is not bug of JDBC.