New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Roll back fail.... [JDBC224] #273
Comments
Commented by: Zhaoce (zhaoce) here is my test code |
Modified by: Zhaoce (zhaoce)Attachment: Test.java [ 12082 ] |
Commented by: Zhaoce (zhaoce) here is the exception printout java.lang.ArrayIndexOutOfBoundsException: 1041 below is my hibernate test code
|
Modified by: Zhaoce (zhaoce)security: Developers [ 10012 ] => |
Modified by: Zhaoce (zhaoce)Version: Jaybird 2.1.6 [ 10285 ] => |
Modified by: Zhaoce (zhaoce)environment: Mac OSX 10.5.8 => Jaybird 2.1.6 |
Commented by: Zhaoce (zhaoce) Today I tried another environment |
Commented by: @mrotteveel What was the exact Firebird version and Java version you used previously (you mention Firebird 2.1 and JDK 1,6, but I need the full versions)? |
Commented by: Zhaoce (zhaoce) Hi Mark |
Modified by: @mrotteveelassignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ] |
Commented by: @mrotteveel I have not been able to reproduce this problem using Jaybird 2.1.6 or 2.2 (latest build), neither with Firebird 2.1.4 or 2.5. I do notice some weirdness in the way getSqlCounts goes through the info-buffer which might lead to an ArrayIndexOutOfBounds depending on the infobuffer content. I will need to investigate that further. On further examination the codepath that throws the ArrayIndexOutOfBoundsException in the reproduction should never have been reached because the Exception for the primary key violation is thrown before that code is reached. I am not sure how that could happen in your case without Firebird not actually sending the error (or Jaybird not properly receiving the error). |
Commented by: @mrotteveel Closing this issue as I am not able to reproduce it. |
Submitted by: Zhaoce (zhaoce)
Attachments:
Test.java
I am not sure this is a bug or not
but it seems like a bug to me
I built a table USERS with 2 columns ID and PW(password) with ID is the primary key
then I insert one record ("zhaoce", "fdjakl") and commit;
then I tried to use jdbc to insert this record again
it should fail and throw an exception and then I tried to rollback to the savepoint
but it failed and throw a new exception...
below is my jdbc test code
import java.sql.*;
public class Test {
}
The text was updated successfully, but these errors were encountered: