Update src/Interpreters/InterpreterAlterQuery.cpp

Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
This commit is contained in:
Antonio Andelic 2023-04-03 16:56:45 +02:00 committed by GitHub
parent 12bee0573f
commit e81c2999a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ BlockIO InterpreterAlterQuery::executeToTable(const ASTAlterQuery & alter)
}
if (!table)
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Could not find table: {}", table_id.table_name);
throw Exception(ErrorCodes::UNKNOWN_TABLE, "Could not find table: {}", table_id.table_name);
checkStorageSupportsTransactionsIfNeeded(table, getContext());
if (table->isStaticStorage())