diff options
Diffstat (limited to 'libmysqld')
-rw-r--r-- | libmysqld/lib_sql.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 91a308ecb21..2c54603ea7a 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -277,6 +277,12 @@ static bool check_user(THD *thd,enum_server_command command, const char *user, } +void THD::clear_error() +{ + net.last_error[0]= 0; + net.last_errno= 0; +} + /* Make a copy of array and the strings array points to */ |