1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix for bug #8143: A date with value 0 is treated as a NULL value

This commit is contained in:
ramil/ram@mysql.com/myoffice.izhnet.ru
2006-07-23 15:25:30 +05:00
parent d5b41988cd
commit 1c04310e30
3 changed files with 29 additions and 0 deletions

View File

@ -91,6 +91,14 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
/* Handler didn't support fast delete; Delete rows one by one */
}
if (conds)
{
Item::cond_result result;
conds= remove_eq_conds(thd, conds, &result);
if (result == Item::COND_FALSE) // Impossible where
limit= 0;
}
table->used_keys.clear_all();
table->quick_keys.clear_all(); // Can't use 'only index'
select=make_select(table, 0, 0, conds, 0, &error);