From fdb093fc476af146feaa6d4403db0c25bb6484d8 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 Dec 2002 16:38:49 +0200 Subject: Copy arguments given to mysql_server_init() Made keybuff_size longlong (To make show variables work similar on 32 and 64 bit systems) Fixed some 'not initalized variable errors' in multi-table-update. Fixed memory leak in multi-table-update. Now all tests works under valgrind without any errors. libmysqld/lib_sql.cc: Copy arguments given to mysql_server_init() mysql-test/r/temp_table.result: Update test results (after merge form 3.23) sql/handler.cc: Made keybuff_size longlong sql/mysql_priv.h: Made keybuff_size longlong sql/mysqld.cc: Made keybuff_size longlong sql/set_var.cc: Made keybuff_size longlong sql/set_var.h: Made keybuff_size longlong sql/sql_select.cc: Simple cleanup sql/sql_select.h: Make TMP_TABLE_PARAM to be allocated through Sql_alloc sql/sql_update.cc: Fixed some 'not initalized variable errors' in multi-table-update. Fixed memory leak in multi-table-update --- mysql-test/r/temp_table.result | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mysql-test/r/temp_table.result') diff --git a/mysql-test/r/temp_table.result b/mysql-test/r/temp_table.result index 45f879e182b..7c8d10cf0a6 100644 --- a/mysql-test/r/temp_table.result +++ b/mysql-test/r/temp_table.result @@ -72,6 +72,11 @@ id val elt(two.val,'one','two') 2 1 one 4 2 two drop table t1,t2; +create temporary table t1 (a int not null); +insert into t1 values (1),(1); +alter table t1 add primary key (a); +Duplicate entry '1' for key 1 +drop table t1; drop table if exists t1; CREATE TABLE t1 ( d datetime default NULL -- cgit v1.2.1