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


##########
proxy/backend/src/main/java/org/apache/shardingsphere/proxy/backend/session/ServerPreparedStatement.java:
##########
@@ -35,16 +32,9 @@ public interface ServerPreparedStatement {
     String getSql();
     
     /**
-     * Get {@link SQLStatement} of server prepared statement.
-     *
-     * @return {@link SQLStatement}
-     */
-    SQLStatement getSqlStatement();
-    
-    /**
-     * Get optional {@link SQLStatementContext} of server prepared statement.
+     * Get {@link SQLStatementContext} of server prepared statement.
      *
-     * @return optional {@link SQLStatementContext}
+     * @return {@link SQLStatementContext}
      */
-    Optional<SQLStatementContext<?>> getSqlStatementContext();
+    SQLStatementContext<?> getSqlStatementContext();

Review Comment:
   Now the SQLStatementContext is always present in ServerPreparedStatement.



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

Reply via email to