1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Follow-up to Bug #55582 which allows checking strings in if

Simplified cases where a select was used to compare variable against ''
This commit is contained in:
Bjorn Munch
2010-10-21 15:20:50 +02:00
parent e4f9ead140
commit 909f0bf94a
15 changed files with 26 additions and 26 deletions

View File

@ -23,7 +23,7 @@
# Reset DEBUG_SYNC facility for safety.
set debug_sync= "RESET";
if (`SELECT '$restore_table' <> ''`)
if ($restore_table)
{
--eval create temporary table t_backup select * from $restore_table;
}
@ -67,7 +67,7 @@ if (!$success)
--eval delete from $table where i = 0;
if (`SELECT '$restore_table' <> ''`)
if ($restore_table)
{
--eval truncate table $restore_table;
--eval insert into $restore_table select * from t_backup;