From 904c42a753c8a4a6cd8fcfca250314aebe51cfb9 Mon Sep 17 00:00:00 2001 From: Liang Zhang Date: Fri, 26 Jan 2024 22:15:16 +0800 Subject: [PATCH] Remove useless connectionSession.setQueryContext(queryContext) on PreviewExecutor (#29869) --- .../proxy/backend/handler/distsql/rul/type/PreviewExecutor.java | 1 - 1 file changed, 1 deletion(-) diff --git a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rul/type/PreviewExecutor.java b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rul/type/PreviewExecutor.java index ca957396af3b9..9c1aa24318f5b 100644 --- a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rul/type/PreviewExecutor.java +++ b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/distsql/rul/type/PreviewExecutor.java @@ -92,7 +92,6 @@ public Collection getRows(final ShardingSphereMetaData SQLStatement toBePreviewedStatement = metaData.getGlobalRuleMetaData().getSingleRule(SQLParserRule.class).getSQLParserEngine(database.getProtocolType()).parse(toBePreviewedSQL, false); SQLStatementContext toBePreviewedStatementContext = new SQLBindEngine(metaData, database.getName(), hintValueContext).bind(toBePreviewedStatement, Collections.emptyList()); QueryContext queryContext = new QueryContext(toBePreviewedStatementContext, toBePreviewedSQL, Collections.emptyList(), hintValueContext); - connectionSession.setQueryContext(queryContext); if (toBePreviewedStatementContext instanceof CursorAvailable && toBePreviewedStatementContext instanceof CursorDefinitionAware) { setUpCursorDefinition(toBePreviewedStatementContext); }