Commit 12a7af37 authored by jani@labbari.dsl.inet.fi's avatar jani@labbari.dsl.inet.fi

Merge labbari.dsl.inet.fi:/home/my/bk/mysql-5.0-marvel

into  labbari.dsl.inet.fi:/home/my/bk/mysql-5.1-marvel
parents 0a1c65b6 7d7524d9
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
*/.libs/* */.libs/*
*/.pure */.pure
*/debug/* */debug/*
*/minsizerel/*
*/release/* */release/*
*/relwithdebinfo/* */relwithdebinfo/*
*/minsizerel/*
*~ *~
.*.swp .*.swp
./CMakeCache.txt ./CMakeCache.txt
...@@ -584,6 +584,7 @@ heap/hp_test2 ...@@ -584,6 +584,7 @@ heap/hp_test2
help help
help.c help.c
help.h help.h
include/abi_check
include/check_abi include/check_abi
include/link_sources include/link_sources
include/my_config.h include/my_config.h
...@@ -1021,8 +1022,8 @@ libmysqld/.deps/unireg.Po ...@@ -1021,8 +1022,8 @@ libmysqld/.deps/unireg.Po
libmysqld/backup_dir libmysqld/backup_dir
libmysqld/client.c libmysqld/client.c
libmysqld/client_settings.h libmysqld/client_settings.h
libmysqld/convert.cc
libmysqld/cmake_dummy.c libmysqld/cmake_dummy.c
libmysqld/convert.cc
libmysqld/derror.cc libmysqld/derror.cc
libmysqld/discover.cc libmysqld/discover.cc
libmysqld/emb_qcache.cpp libmysqld/emb_qcache.cpp
......
...@@ -168,8 +168,23 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)), ...@@ -168,8 +168,23 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)),
} }
/*
Free all memory and resources used by the client library
NOTES
When calling this there should not be any other threads using
the library.
To make things simpler when used with windows dll's (which calls this
function automaticly), it's safe to call this function multiple times.
*/
void STDCALL mysql_server_end() void STDCALL mysql_server_end()
{ {
if (!mysql_client_init)
return;
#ifdef EMBEDDED_LIBRARY #ifdef EMBEDDED_LIBRARY
end_embedded_server(); end_embedded_server();
#endif #endif
......
...@@ -672,6 +672,20 @@ SELECT * FROM t3 WHERE a = 'uk'; ...@@ -672,6 +672,20 @@ SELECT * FROM t3 WHERE a = 'uk';
DROP TABLE t1,t2,t3; DROP TABLE t1,t2,t3;
#
# Test bug when trying to drop data file which no InnoDB directory entry
#
create table t1 (a int) engine=innodb;
copy_file $MYSQLTEST_VARDIR/master-data/test/t1.frm $MYSQLTEST_VARDIR/master-data/test/t2.frm;
--error 1146
select * from t2;
drop table t1;
--error 1051
drop table t2;
create table t2 (a int);
drop table t2;
# #
# Bug #29154: LOCK TABLES is not atomic when >1 InnoDB tables are locked # Bug #29154: LOCK TABLES is not atomic when >1 InnoDB tables are locked
...@@ -706,7 +720,6 @@ DISCONNECT c1; ...@@ -706,7 +720,6 @@ DISCONNECT c1;
DISCONNECT c2; DISCONNECT c2;
DROP TABLE t1,t2; DROP TABLE t1,t2;
--echo End of 5.0 tests --echo End of 5.0 tests
# #
......
...@@ -665,6 +665,14 @@ UPDATE t3 SET a = 'us' WHERE a = 'uk'; ...@@ -665,6 +665,14 @@ UPDATE t3 SET a = 'us' WHERE a = 'uk';
SELECT * FROM t3 WHERE a = 'uk'; SELECT * FROM t3 WHERE a = 'uk';
a a
DROP TABLE t1,t2,t3; DROP TABLE t1,t2,t3;
create table t1 (a int) engine=innodb;
select * from t2;
ERROR 42S02: Table 'test.t2' doesn't exist
drop table t1;
drop table t2;
ERROR 42S02: Unknown table 't2'
create table t2 (a int);
drop table t2;
CREATE TABLE t1 (a INT) ENGINE=InnoDB; CREATE TABLE t1 (a INT) ENGINE=InnoDB;
CREATE TABLE t2 (a INT) ENGINE=InnoDB; CREATE TABLE t2 (a INT) ENGINE=InnoDB;
switch to connection c1 switch to connection c1
......
...@@ -623,7 +623,7 @@ convert_error_code_to_mysql( ...@@ -623,7 +623,7 @@ convert_error_code_to_mysql(
} else if (error == (int) DB_TABLE_NOT_FOUND) { } else if (error == (int) DB_TABLE_NOT_FOUND) {
return(HA_ERR_KEY_NOT_FOUND); return(HA_ERR_NO_SUCH_TABLE);
} else if (error == (int) DB_TOO_BIG_RECORD) { } else if (error == (int) DB_TOO_BIG_RECORD) {
......
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