-
Notifications
You must be signed in to change notification settings - Fork 819
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
In multiThread Case , the statement will Loop forever #1801
Comments
Is this pgjdbc/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java Lines 1003 to 1018 in 13a644b
|
Yes, I add code after connection.wait(10); |
Interesting, can you send a PR please |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a bug report
Driver Version 4.2.14
Java Version jdk1.8
OS Version windows
PostgreSQL Version 12.2.3
To Reproduce
I use dbtransfer( https://github.com/evolute-pt/dbtransfer ) to copy Sql server database to PostSql
total 20 tables . but dbtransfer cannot stop,still running .
I debug the jdbc driver and fount the program run in Pgstatmement.java line 1004 -1008 ,loop forever .
I found this.statementState == StatementCancelState.IDLE
but the while block check if this.statementState == StatementCancelState.CANCELLED
so this loop cannot break .
I add code like
if(this.statementState == StatementCancelState.IDLE) //// ---- update 20200613
break;
then Program running OK
The text was updated successfully, but these errors were encountered: