summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-12-20 17:14:46 +0400
committerunknown <bar@bar.mysql.r18.ru>2002-12-20 17:14:46 +0400
commit54abb8e922dcdb0834e29f7de76ec849f258e06c (patch)
tree32f5ef505dc3713cbcfdf84d6a2b51f0f3bc020f /sql/sql_delete.cc
parentf6d3338a9115fdbd8fb9d504adf0e505fa22ae8a (diff)
downloadmariadb-git-54abb8e922dcdb0834e29f7de76ec849f258e06c.tar.gz
less default_charset_info
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index 88da3e2505c..cfa7170fd0a 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -536,7 +536,7 @@ int mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
table->file->info(HA_STATUS_AUTO | HA_STATUS_NO_LOCK);
bzero((char*) &create_info,sizeof(create_info));
create_info.auto_increment_value= table->file->auto_increment_value;
- create_info.table_charset=default_charset_info;
+ create_info.table_charset=table->table_charset;
db_type table_type=table->db_type;
strmov(path,table->path);
@@ -580,7 +580,7 @@ int mysql_truncate(THD *thd, TABLE_LIST *table_list, bool dont_send_ok)
}
bzero((char*) &create_info,sizeof(create_info));
- create_info.table_charset=default_charset_info;
+ create_info.table_charset=table_list->table->table_charset;
*fn_ext(path)=0; // Remove the .frm extension
error= ha_create_table(path,&create_info,1) ? -1 : 0;