mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
set_var.cc, sql_table.cc, handler.cc, field.cc:
Less default_charset_info
This commit is contained in:
@ -689,7 +689,7 @@ void handler::print_error(int error, myf errflag)
|
||||
{
|
||||
/* Write the dupplicated key in the error message */
|
||||
char key[MAX_KEY_LENGTH];
|
||||
String str(key,sizeof(key),default_charset_info);
|
||||
String str(key,sizeof(key),system_charset_info);
|
||||
key_unpack(&str,table,(uint) key_nr);
|
||||
uint max_length=MYSQL_ERRMSG_SIZE-(uint) strlen(ER(ER_DUP_ENTRY));
|
||||
if (str.length() >= max_length)
|
||||
|
Reference in New Issue
Block a user