Skip to content

Commit 1b70332

Browse files
committed
Close #468
1 parent 664d7e4 commit 1b70332

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/duckdb_py/pyrelation.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ std::unique_ptr<DuckDBPyRelation> DuckDBPyRelation::Query(const string &view_nam
15621562
if (statement.type == StatementType::SELECT_STATEMENT) {
15631563
auto select_statement = unique_ptr_cast<SQLStatement, SelectStatement>(std::move(parser.statements[0]));
15641564
auto query_relation = make_shared_ptr<QueryRelation>(rel->context->GetContext(), std::move(select_statement),
1565-
sql_query, "query_relation");
1565+
"query_relation_" + StringUtil::GenerateRandomName(16), sql_query);
15661566
return DeriveRelation(std::move(query_relation));
15671567
} else if (IsDescribeStatement(statement)) {
15681568
auto query = PragmaShow(view_name);

0 commit comments

Comments
 (0)