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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]