Commit 2435dce9 authored by monty@mashka.mysql.fi's avatar monty@mashka.mysql.fi

Merge with 3.23

parents fc06433a 82a96692
...@@ -73,6 +73,9 @@ Makefile.in' ...@@ -73,6 +73,9 @@ Makefile.in'
PENDING/* PENDING/*
TAGS TAGS
aclocal.m4 aclocal.m4
autom4te-2.53.cache/output.0
autom4te-2.53.cache/requests
autom4te-2.53.cache/traces.0
autom4te.cache/* autom4te.cache/*
autom4te.cache/output.0 autom4te.cache/output.0
autom4te.cache/requests autom4te.cache/requests
...@@ -114,6 +117,9 @@ bdb/build_win32/include.tcl ...@@ -114,6 +117,9 @@ bdb/build_win32/include.tcl
bdb/build_win32/libdb.rc bdb/build_win32/libdb.rc
bdb/db/crdel_auto.c bdb/db/crdel_auto.c
bdb/db/db_auto.c bdb/db/db_auto.c
bdb/dist/autom4te-2.53.cache/output.0
bdb/dist/autom4te-2.53.cache/requests
bdb/dist/autom4te-2.53.cache/traces.0
bdb/dist/autom4te.cache/* bdb/dist/autom4te.cache/*
bdb/dist/autom4te.cache/output.0 bdb/dist/autom4te.cache/output.0
bdb/dist/autom4te.cache/requests bdb/dist/autom4te.cache/requests
...@@ -173,6 +179,8 @@ bdb/test/include.tcl ...@@ -173,6 +179,8 @@ bdb/test/include.tcl
bdb/test/logtrack.list bdb/test/logtrack.list
bdb/txn/txn_auto.c bdb/txn/txn_auto.c
binary/* binary/*
bkpull.log
build.log
client/insert_test client/insert_test
client/log_event.cc client/log_event.cc
client/log_event.h client/log_event.h
...@@ -199,6 +207,7 @@ config.log ...@@ -199,6 +207,7 @@ config.log
config.status config.status
configure configure
core core
core.2430
db-*.*.* db-*.*.*
dbug/user.t dbug/user.t
depcomp depcomp
...@@ -216,6 +225,9 @@ include/my_config.h ...@@ -216,6 +225,9 @@ include/my_config.h
include/my_global.h include/my_global.h
include/mysql_version.h include/mysql_version.h
include/widec.h include/widec.h
innobase/autom4te-2.53.cache/output.0
innobase/autom4te-2.53.cache/requests
innobase/autom4te-2.53.cache/traces.0
innobase/autom4te.cache/* innobase/autom4te.cache/*
innobase/autom4te.cache/output.0 innobase/autom4te.cache/output.0
innobase/autom4te.cache/requests innobase/autom4te.cache/requests
...@@ -406,6 +418,7 @@ mysys/test_thr_alarm ...@@ -406,6 +418,7 @@ mysys/test_thr_alarm
mysys/test_thr_lock mysys/test_thr_lock
mysys/test_vsnprintf mysys/test_vsnprintf
mysys/testhash mysys/testhash
pull.log
regex/re regex/re
repl-tests/test-repl-ts/repl-timestamp.master.reject repl-tests/test-repl-ts/repl-timestamp.master.reject
repl-tests/test-repl/foo-dump-slave.master. repl-tests/test-repl/foo-dump-slave.master.
...@@ -509,16 +522,3 @@ vio/test-ssl ...@@ -509,16 +522,3 @@ vio/test-ssl
vio/test-sslclient vio/test-sslclient
vio/test-sslserver vio/test-sslserver
vio/viotest-ssl vio/viotest-ssl
autom4te-2.53.cache/output.0
autom4te-2.53.cache/requests
autom4te-2.53.cache/traces.0
bdb/dist/autom4te-2.53.cache/output.0
bdb/dist/autom4te-2.53.cache/requests
bdb/dist/autom4te-2.53.cache/traces.0
bkpull.log
build.log
innobase/autom4te-2.53.cache/output.0
innobase/autom4te-2.53.cache/requests
innobase/autom4te-2.53.cache/traces.0
pull.log
core.2430
...@@ -61,6 +61,15 @@ insert into t2 values (1,1),(2,1),(3,1),(4,2); ...@@ -61,6 +61,15 @@ insert into t2 values (1,1),(2,1),(3,1),(4,2);
select one.id, two.val, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id; select one.id, two.val, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id;
drop table t1,t2; drop table t1,t2;
#
# Test of failed ALTER TABLE on temporary table
#
create temporary table t1 (a int not null);
insert into t1 values (1),(1);
-- error 1062
alter table t1 add primary key (a);
drop table t1;
# #
# In MySQL 4.0.4 doing a GROUP BY on a NULL column created a disk based # In MySQL 4.0.4 doing a GROUP BY on a NULL column created a disk based
# temporary table when a memory based one would be good enough. # temporary table when a memory based one would be good enough.
......
...@@ -1771,8 +1771,14 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name, ...@@ -1771,8 +1771,14 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
/* We changed a temporary table */ /* We changed a temporary table */
if (error) if (error)
{ {
/*
* The following function call will also free a
* new_table pointer.
* Therefore, here new_table pointer is not free'd as it is
* free'd in close_temporary() which is called by by the
* close_temporary_table() function.
*/
close_temporary_table(thd,new_db,tmp_name); close_temporary_table(thd,new_db,tmp_name);
my_free((gptr) new_table,MYF(0));
goto err; goto err;
} }
/* Close lock if this is a transactional table */ /* Close lock if this is a transactional table */
...@@ -2092,7 +2098,6 @@ copy_data_between_tables(TABLE *from,TABLE *to, ...@@ -2092,7 +2098,6 @@ copy_data_between_tables(TABLE *from,TABLE *to,
if (to->file->external_lock(thd,F_UNLCK)) if (to->file->external_lock(thd,F_UNLCK))
error=1; error=1;
err: err:
tmp_error = ha_recovery_logging(thd,TRUE);
free_io_cache(from); free_io_cache(from);
*copied= found_count; *copied= found_count;
*deleted=delete_count; *deleted=delete_count;
......
...@@ -79,7 +79,8 @@ parse_arguments() { ...@@ -79,7 +79,8 @@ parse_arguments() {
done done
} }
# Get arguments from the my.cnf file, groups [mysqld] and [mysql_server] # Get arguments from the my.cnf file,
# groups [mysqld] [mysql_server] and [mysql.server]
if test -x ./bin/my_print_defaults if test -x ./bin/my_print_defaults
then then
print_defaults="./bin/my_print_defaults" print_defaults="./bin/my_print_defaults"
...@@ -117,7 +118,7 @@ else ...@@ -117,7 +118,7 @@ else
test -z "$print_defaults" && print_defaults="my_print_defaults" test -z "$print_defaults" && print_defaults="my_print_defaults"
fi fi
parse_arguments `$print_defaults $defaults mysqld mysql_server` parse_arguments `$print_defaults mysqld mysql_server mysql.server`
# Safeguard (relative paths, core dumps..) # Safeguard (relative paths, core dumps..)
cd $basedir cd $basedir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment