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