You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4109 Error out instead of sending a warning
when a non-existing table is dropped. This patch accomodates the changes made to server 10.5 as part of MDEV-11412, where the server now tries to drop the table from all storage engines when a .frm table does not exist. We were earlier retuning a warning to the client and setting the return code to 0. We now instead return ER_NO_SUCH_TABLE_IN_ENGINE error code to the server if the table does not exist in ColumnStore.
This commit is contained in:
@ -151,12 +151,9 @@ DropTableProcessor::DDLResult DropTableProcessor::processPackage(ddlpackage::Dro
|
||||
{
|
||||
Message::Args args;
|
||||
Message message(1);
|
||||
args.add("Table dropped with warning ");
|
||||
args.add("Table does not exist in columnstore engine.");
|
||||
args.add("");
|
||||
args.add("");
|
||||
args.add("Table does not exist in ColumnStore.");
|
||||
message.format(args);
|
||||
result.result = WARNING;
|
||||
result.result = DROP_TABLE_NOT_IN_CATALOG_ERROR;
|
||||
result.message = message;
|
||||
fSessionManager.rolledback(txnID);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user