Bug #3364 | Join-query error | ||
---|---|---|---|
Submitted: | 2 Apr 2004 3:55 | Modified: | 3 Apr 2004 9:17 |
Reporter: | Vadims Zemlanojs | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | Connector/J 3.1.1-alpha | OS: | Linux (Linux 2.4 RedHet9) |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
[2 Apr 2004 3:55]
Vadims Zemlanojs
[3 Apr 2004 9:17]
Mark Matthews
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Additional info: I can't repeat this with standard statements. If you're using PreparedStatements, then you should either build MySQL-4.1 from BitKeeper, or alternatively wait for MySQL-4.1.2, as many bugs similar to this in the server-side prepared statement code are fixed in MySQL-4.1.2 (the optimizer was incorrectly removing conditions in some cases). You can also provide a _full_ testcase which also contains the Java code to reproduce this error and set this bug back to 'open' state.
[4 Apr 2004 0:51]
Vadims Zemlanojs
It could be my mistake. Pure ResultSet works right. I used my old program with old java components. Then, error is - with different drivers "select" gets different result.
[22 Apr 2004 13:40]
Vadims Zemlanojs
I've tried a little test with PreparedStatement. There is en error without my old code, which I have mentioned above. Class.forName("com.mysql.jdbc.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql://192.168.25.1/test:3306","test","test"); PreparedStatement stmt0 = conn.prepareStatement("select curr_list.name,rates.date_,rates.rate from test.rates , test.curr_list where (curr_list.CURR_ID=rates.CURR_ID) and(curr_list.name like 'RUB')"); ResultSet rs = stmt0.executeQuery(); This ResultSet has 4 records with old driver and 12 with new one. Changing 'RUB' to 'USD' will have 4 records with old driver and 0 with new one.