mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Changed condition similar to code in 4.1.
This commit is contained in:
@ -421,12 +421,13 @@ bool mysql_ha_read(THD *thd, TABLE_LIST *tables,
|
|||||||
if (!lock)
|
if (!lock)
|
||||||
goto err0; // mysql_lock_tables() printed error message already
|
goto err0; // mysql_lock_tables() printed error message already
|
||||||
|
|
||||||
if (cond && ((!cond->fixed &&
|
if (cond)
|
||||||
cond->fix_fields(thd, &cond)) || cond->check_cols(1)))
|
|
||||||
{
|
{
|
||||||
if (table->query_id != thd->query_id)
|
if (table->query_id != thd->query_id)
|
||||||
cond->cleanup(); // File was reopened
|
cond->cleanup(); // File was reopened
|
||||||
goto err0;
|
if ((!cond->fixed &&
|
||||||
|
cond->fix_fields(thd, &cond)) || cond->check_cols(1))
|
||||||
|
goto err0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyname)
|
if (keyname)
|
||||||
|
Reference in New Issue
Block a user