This is an automated email from the ASF dual-hosted git repository. chengzhang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push: new fe39b05ae90 Fix tbl e2e exception caused by #35520 refactor (#35527) fe39b05ae90 is described below commit fe39b05ae90a245537db7f246ec0ef103cc30ff3 Author: Zhengqiang Duan <duanzhengqi...@apache.org> AuthorDate: Tue May 27 11:49:03 2025 +0800 Fix tbl e2e exception caused by #35520 refactor (#35527) --- .../jdbc/core/statement/ShardingSpherePreparedStatement.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.java b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.java index 951aa0df039..107421f0eef 100644 --- a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.java +++ b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/statement/ShardingSpherePreparedStatement.java @@ -133,13 +133,13 @@ public final class ShardingSpherePreparedStatement extends AbstractPreparedState this(connection, sql, resultSetType, resultSetConcurrency, resultSetHoldability, false, null); } - private ShardingSpherePreparedStatement(final ShardingSphereConnection connection, final String sql, final int resultSetType, final int resultSetConcurrency, + private ShardingSpherePreparedStatement(final ShardingSphereConnection connection, final String originSQL, final int resultSetType, final int resultSetConcurrency, final int resultSetHoldability, final boolean returnGeneratedKeys, final String[] columns) throws SQLException { - ShardingSpherePreconditions.checkNotEmpty(sql, () -> new EmptySQLException().toSQLException()); + ShardingSpherePreconditions.checkNotEmpty(originSQL, () -> new EmptySQLException().toSQLException()); this.connection = connection; metaData = connection.getContextManager().getMetaDataContexts().getMetaData(); - this.sql = SQLHintUtils.removeHint(sql); - hintValueContext = SQLHintUtils.extractHint(sql); + sql = SQLHintUtils.removeHint(originSQL); + hintValueContext = SQLHintUtils.extractHint(originSQL); DatabaseType databaseType = metaData.getDatabase(connection.getCurrentDatabaseName()).getProtocolType(); SQLStatement sqlStatement = metaData.getGlobalRuleMetaData().getSingleRule(SQLParserRule.class).getSQLParserEngine(databaseType).parse(sql, true); sqlStatementContext = new SQLBindEngine(metaData, connection.getCurrentDatabaseName(), hintValueContext).bind(databaseType, sqlStatement, Collections.emptyList());