mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
fixed open_and_lock_tables result processing (all open_and_lock_tables revision)
fixed printing of COLLATE operation (BUG#5155) mysql-test/r/case.result: fixed printing of COLLATE operation mysql-test/r/func_if.result: fixed printing of COLLATE operation mysql-test/r/func_in.result: fixed printing of COLLATE operation mysql-test/r/func_str.result: fixed printing of COLLATE operation mysql-test/r/func_test.result: fixed printing of COLLATE operation mysql-test/r/view.result: VIEW with collation mysql-test/t/view.test: VIEW with collation sql/item_strfunc.cc: fixed printing of COLLATE operation sql/item_strfunc.h: fixed printing of COLLATE operation sql/sp_head.cc: fixed open_and_lock_tables result processing sql/sql_base.cc: fixed open_and_lock_tables result processing sql/sql_delete.cc: fixed open_and_lock_tables result processing sql/sql_help.cc: fixed open_and_lock_tables result processing sql/sql_load.cc: fixed open_and_lock_tables result processing sql/sql_parse.cc: fixed open_and_lock_tables result processing sql/sql_prepare.cc: fixed open_and_lock_tables result processing sql/sql_show.cc: fixed open_and_lock_tables result processing sql/sql_update.cc: fixed open_and_lock_tables result processing
This commit is contained in:
@@ -1192,7 +1192,7 @@ sp_instr_set::execute(THD *thd, uint *nextp)
|
||||
if (tables &&
|
||||
((res= check_table_access(thd, SELECT_ACL, tables, 0)) ||
|
||||
(res= open_and_lock_tables(thd, tables))))
|
||||
DBUG_RETURN(-1);
|
||||
DBUG_RETURN(res);
|
||||
|
||||
it= sp_eval_func_item(thd, m_value, m_type);
|
||||
if (! it)
|
||||
@@ -1293,7 +1293,7 @@ sp_instr_jump_if::execute(THD *thd, uint *nextp)
|
||||
if (tables &&
|
||||
((res= check_table_access(thd, SELECT_ACL, tables, 0)) ||
|
||||
(res= open_and_lock_tables(thd, tables))))
|
||||
DBUG_RETURN(-1);
|
||||
DBUG_RETURN(res);
|
||||
|
||||
it= sp_eval_func_item(thd, m_expr, MYSQL_TYPE_TINY);
|
||||
if (!it)
|
||||
@@ -1350,7 +1350,7 @@ sp_instr_jump_if_not::execute(THD *thd, uint *nextp)
|
||||
if (tables &&
|
||||
((res= check_table_access(thd, SELECT_ACL, tables, 0)) ||
|
||||
(res= open_and_lock_tables(thd, tables))))
|
||||
DBUG_RETURN(-1);
|
||||
DBUG_RETURN(res);
|
||||
|
||||
it= sp_eval_func_item(thd, m_expr, MYSQL_TYPE_TINY);
|
||||
if (! it)
|
||||
@@ -1406,7 +1406,7 @@ sp_instr_freturn::execute(THD *thd, uint *nextp)
|
||||
if (tables &&
|
||||
((res= check_table_access(thd, SELECT_ACL, tables, 0)) ||
|
||||
(res= open_and_lock_tables(thd, tables))))
|
||||
DBUG_RETURN(-1);
|
||||
DBUG_RETURN(res);
|
||||
|
||||
it= sp_eval_func_item(thd, m_value, m_type);
|
||||
if (! it)
|
||||
|
||||
Reference in New Issue
Block a user