You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/06/03 02:49:23 UTC

[GitHub] [shardingsphere] TeslaCN commented on a diff in pull request #18161: fix autocommmit

TeslaCN commented on code in PR #18161:
URL: https://github.com/apache/shardingsphere/pull/18161#discussion_r888568722


##########
shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/main/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/query/extended/bind/PostgreSQLComBindExecutor.java:
##########
@@ -47,6 +47,7 @@ public final class PostgreSQLComBindExecutor implements CommandExecutor {
     
     @Override
     public Collection<DatabasePacket<?>> execute() throws SQLException {
+        connectionSession.getBackendConnection().prepareForTaskExecution();

Review Comment:
   There may be more than a Bind packet in a CommandExecuteTask. This may cause the `connectionReferenceCount` in JDBCBackendConnection more than 1.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org