extend check_global_access() to avoid my_error when it's not needed

(in INFORMATION_SCHEMA).
This commit is contained in:
Sergei Golubchik
2013-03-19 15:25:58 +01:00
parent db65e4f537
commit e73f13a707
6 changed files with 37 additions and 37 deletions

View File

@ -25,7 +25,7 @@ class THD;
int get_quote_char_for_identifier(THD *thd, const char *name, uint length);
bool schema_table_store_record(THD *thd, TABLE *table);
void localtime_to_TIME(MYSQL_TIME *to, struct tm *from);
bool check_global_access(THD *thd, ulong want_access);
bool check_global_access(THD *thd, ulong want_access, bool no_errors=false);
uint strconvert(CHARSET_INFO *from_cs, const char *from,
CHARSET_INFO *to_cs, char *to, uint to_length,
uint *errors);