mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Support of warnings for all DML statements (Insert, Update and Alter)
Fix LOAD DATA INFILE warnings to have a better meanigful messages Fix to make the mysql command line to automatically show the warnings count for all basic commands
This commit is contained in:
parent
998dc6468b
commit
05af39d591
14 changed files with 181 additions and 164 deletions
|
|
@ -1010,6 +1010,7 @@ err:
|
|||
|
||||
bool sys_var::check_set(THD *thd, set_var *var, TYPELIB *enum_names)
|
||||
{
|
||||
bool not_used;
|
||||
char buff[80], *error= 0;
|
||||
uint error_len= 0;
|
||||
String str(buff, sizeof(buff), system_charset_info), *res;
|
||||
|
|
@ -1019,7 +1020,7 @@ bool sys_var::check_set(THD *thd, set_var *var, TYPELIB *enum_names)
|
|||
if (!(res= var->value->val_str(&str)))
|
||||
goto err;
|
||||
var->save_result.ulong_value= (ulong)
|
||||
find_set(enum_names, res->c_ptr(), res->length(), &error, &error_len);
|
||||
find_set(enum_names, res->c_ptr(), res->length(), &error, &error_len, ¬_used);
|
||||
if (error_len)
|
||||
{
|
||||
strmake(buff, error, min(sizeof(buff), error_len));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue