Skip to content

Commit 40f422e

Browse files
committed
Fix wrong arguments order for TableFunctionFactory::execute() for loop
Note, that it should not change anything since loop does not support write anyway, so is_insert_query should always be false.
1 parent c091bd9 commit 40f422e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TableFunctions/TableFunctionLoop.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ namespace DB
127127
context,
128128
table_name,
129129
std::move(cached_columns),
130-
is_insert_query);
130+
/*use_global_context=*/false,
131+
/*is_insert_query=*/is_insert_query);
131132
}
132133
auto res = std::make_shared<StorageLoop>(
133134
StorageID(getDatabaseName(), table_name),

0 commit comments

Comments
 (0)