mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
Merge pull request #73157 from ClickHouse/backport/24.9/73045
Backport #73045 to 24.9: Fix crash in transactions with unsupported storage
This commit is contained in:
commit
e56690a115
@ -578,7 +578,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
|
||||
auto maybe_storage = DatabaseCatalog::instance().tryGetTable({table.table.database, table.table.table}, context);
|
||||
if (!maybe_storage)
|
||||
continue;
|
||||
checkStorageSupportsTransactionsIfNeeded(storage, context, /* is_readonly_query */ true);
|
||||
checkStorageSupportsTransactionsIfNeeded(maybe_storage, context, /* is_readonly_query */ true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,9 @@
|
||||
-- Tags: zookeeper
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/72887
|
||||
DROP TABLE IF EXISTS t0;
|
||||
|
||||
CREATE TABLE t0 (c0 Int) ENGINE = Memory();
|
||||
BEGIN TRANSACTION;
|
||||
EXPLAIN SYNTAX SELECT 1 FROM (SELECT 1) tx JOIN t0 ON TRUE; -- { serverError NOT_IMPLEMENTED }
|
||||
ROLLBACK;
|
||||
DROP TABLE IF EXISTS t0;
|
Loading…
Reference in New Issue
Block a user