mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Simple changes during review of code
Added back flag that I accidently removed in last patch sql/ha_federated.cc: Indentation cleanups Simple optimization using min() and strmake() Much simpler create() sql/sql_prepare.cc: Added back flag that I accidently removed in last patch sql/sql_table.cc: Simplify code by having error block last
This commit is contained in:
@@ -2792,6 +2792,8 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor)
|
||||
my_error(ER_PS_NO_RECURSION, MYF(0));
|
||||
return 1;
|
||||
}
|
||||
/* In case the command has a call to SP which re-uses this statement name */
|
||||
flags|= (uint) IS_IN_USE;
|
||||
|
||||
if (cursor && cursor->is_open())
|
||||
close_cursor();
|
||||
|
Reference in New Issue
Block a user