Skip to content

Commit

Permalink
Remove useless connectionSession.setQueryContext(queryContext) on Pre…
Browse files Browse the repository at this point in the history
…viewExecutor (#29869)
  • Loading branch information
terrymanu authored Jan 26, 2024
1 parent 4213df2 commit 904c42a
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public Collection<LocalDataQueryResultRow> 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);
}
Expand Down

0 comments on commit 904c42a

Please sign in to comment.