Skip to content

Commit

Permalink
dbeaver#7731 SQL query data container fix (query offset)
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rider committed Feb 11, 2020
1 parent d246ab6 commit 3df6675
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public DBCStatistics readData(@NotNull DBCExecutionSource source, @NotNull DBCSe
SQLRuleManager ruleManager = new SQLRuleManager(syntaxManager);
ruleManager.loadRules(dataSource, false);
SQLParserContext parserContext = new SQLParserContext(this, syntaxManager, ruleManager, new Document(query.getText()));
sqlQuery.setParameters(SQLScriptParser.parseParameters(parserContext, sqlQuery.getOffset(), sqlQuery.getLength()));
sqlQuery.setParameters(SQLScriptParser.parseParameters(parserContext, 0, sqlQuery.getLength()));
if (!scriptContext.fillQueryParameters(sqlQuery, CommonUtils.isBitSet(flags, DBSDataContainer.FLAG_REFRESH))) {
// User canceled
return statistics;
Expand Down

0 comments on commit 3df6675

Please sign in to comment.