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 2021/07/08 08:21:17 UTC

[GitHub] [shardingsphere] tristaZero opened a new pull request #11215: Remove PostgreSQLBinaryStatementRegistry

tristaZero opened a new pull request #11215:
URL: https://github.com/apache/shardingsphere/pull/11215


   Fixes #ISSUSE_ID.
   
   Changes proposed in this pull request:
   -
   -
   -
   


-- 
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



[GitHub] [shardingsphere] TeslaCN merged pull request #11215: Remove PostgreSQLBinaryStatementRegistry

Posted by GitBox <gi...@apache.org>.
TeslaCN merged pull request #11215:
URL: https://github.com/apache/shardingsphere/pull/11215


   


-- 
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



[GitHub] [shardingsphere] TeslaCN commented on a change in pull request #11215: Remove PostgreSQLBinaryStatementRegistry

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on a change in pull request #11215:
URL: https://github.com/apache/shardingsphere/pull/11215#discussion_r666017661



##########
File path: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-postgresql/src/main/java/org/apache/shardingsphere/proxy/frontend/postgresql/command/PostgreSQLConnectionContext.java
##########
@@ -139,4 +131,14 @@ public void clearContext() {
         pendingExecutors.clear();
         updateCount = 0;
     }
+    
+    /**
+     * Get postgreSQL binary statement.
+     * 
+     * @param statementId statement Id
+     * @return postgreSQL binary statement
+     */
+    public PostgreSQLBinaryStatement getPostgreSQLBinaryStatement(final String statementId) {
+        return binaryStatements.getOrDefault(statementId, new PostgreSQLBinaryStatement("", new EmptyStatement(), Collections.emptyList()));

Review comment:
       An Error should be thrown if absent.




-- 
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