Hi!
On Nov 28, Sergey Vojtovich wrote:
> ChangeSet@stripped, 2007-11-28 18:07:24+04:00, svoj@stripped +5 -0
> BUG#22972 - Falcon: Partitioned table with pending transaction leads to
> strange error
>
> Falcon cannot drop a table with pending transaction and error
> message is misleading.
>
> With this fix Falcon returns descriptive warning.
>
> diff -Nrup a/storage/falcon/ha_falcon.cpp b/storage/falcon/ha_falcon.cpp
> --- a/storage/falcon/ha_falcon.cpp 2007-11-28 00:07:21 +04:00
> +++ b/storage/falcon/ha_falcon.cpp 2007-11-28 18:07:22 +04:00
> @@ -1645,7 +1645,7 @@ int StorageInterface::getMySqlError(int
>
> case StorageErrorUncommittedUpdates:
> DBUG_PRINT("info", ("StorageErrorUncommittedUpdates"));
> - return (HA_ERR_TABLE_EXIST);
> + return (HA_ERR_LOCK_OR_ACTIVE_TRANSACTION);
>
> case StorageErrorUncommittedRecords:
> DBUG_PRINT("info", ("StorageErrorUncommittedRecords"));
Why HA_ERR_TABLE_EXIST resulted in "ERROR 1051: Unknown table 't1'" ?
Regards / Mit vielen Grüssen,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ Principal Software Developer
/_/ /_/\_, /___/\___\_\___/ MySQL GmbH, Dachauer Str. 37, D-80335 München
<___/ Geschäftsführer: Kaj Arnö - HRB
München 162140