Skip to content
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

Bug: Closing connection closes already closed PGSQLPreparedStatement #125

Merged

Conversation

vnayar
Copy link
Contributor

@vnayar vnayar commented Mar 28, 2024

Remove flawed PGSQLPreparedStatement::close() method. This method is nearly identical to PGSQLStatement::close(), however, it lacks a call to conn.onStatementClosed(this). Due to this deficiency, the connection will attempt to close the statement a 2nd time when it is closed, resulting in an exception being thrown.

By erasing the implementation in PGSQLPreparedStatement, the correct implemention in PGSQLStatement can be used.

…tatement.

Remove flawed `PGSQLPreparedStatement::close()` method. This method is nearly identical
to `PGSQLStatement::close()`, however, it lacks a call to `conn.onStatementClosed(this)`.
Due to this deficiency, the connection will attempt to close the statement a 2nd time
when it is closed, resulting in an exception being thrown.

By erasing the implementation in `PGSQLPreparedStatement`, the correct implemention
in `PGSQLStatement` can be used.
@SingingBush SingingBush merged commit 723799a into buggins:master Mar 29, 2024
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants