diff --git a/dbms/src/Interpreters/InterpreterShowTablesQuery.cpp b/dbms/src/Interpreters/InterpreterShowTablesQuery.cpp index 663ee628eed..c9f07425aa4 100644 --- a/dbms/src/Interpreters/InterpreterShowTablesQuery.cpp +++ b/dbms/src/Interpreters/InterpreterShowTablesQuery.cpp @@ -45,7 +45,7 @@ String InterpreterShowTablesQuery::getRewrittenQuery() rewritten_query << "SELECT name FROM system.tables WHERE "; if (query.temporary) - rewritten_query << "temporary = 1"; + rewritten_query << "is_temporary"; else rewritten_query << "database = " << std::quoted(database, '\'');