1
0
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:
bar@bar.mysql.r18.ru
2003-02-26 13:34:35 +04:00
parent 1a2c7da8db
commit e3579917da
4 changed files with 4 additions and 4 deletions

View File

@ -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)