Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d65f6b54
Commit
d65f6b54
authored
Mar 05, 2009
by
Guangbao Ni
Browse files
Options
Browse Files
Download
Plain Diff
Auto merged
parents
4f0f021c
ccd73047
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
223 additions
and
41 deletions
+223
-41
mysql-test/r/skip_name_resolve.result
mysql-test/r/skip_name_resolve.result
+0
-3
mysql-test/suite/binlog/r/binlog_sql_mode.result
mysql-test/suite/binlog/r/binlog_sql_mode.result
+46
-0
mysql-test/suite/binlog/t/binlog_sql_mode.test
mysql-test/suite/binlog/t/binlog_sql_mode.test
+76
-0
mysql-test/suite/funcs_1/r/myisam_views.result
mysql-test/suite/funcs_1/r/myisam_views.result
+1
-1
mysql-test/t/ddl_i18n_koi8r.test
mysql-test/t/ddl_i18n_koi8r.test
+36
-14
mysql-test/t/ddl_i18n_utf8.test
mysql-test/t/ddl_i18n_utf8.test
+36
-14
mysql-test/t/drop.test
mysql-test/t/drop.test
+19
-6
mysql-test/t/skip_name_resolve.test
mysql-test/t/skip_name_resolve.test
+4
-1
sql/sp.cc
sql/sp.cc
+3
-1
sql/sql_table.cc
sql/sql_table.cc
+2
-1
No files found.
mysql-test/r/skip_name_resolve.result
View file @
d65f6b54
...
@@ -9,6 +9,3 @@ select user();
...
@@ -9,6 +9,3 @@ select user();
user()
user()
#
#
show processlist;
show processlist;
Id User Host db Command Time State Info
<id> root <host> test <command> <time> <state> <info>
<id> root <host> test <command> <time> <state> <info>
mysql-test/suite/binlog/r/binlog_sql_mode.result
0 → 100644
View file @
d65f6b54
stop slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
SET @old_sql_mode= @@global.sql_mode;
SET @old_binlog_format=@@session.binlog_format;
SET SESSION sql_mode=8;
Initialization
RESET MASTER;
CREATE TABLE t1 (id INT);
CREATE PROCEDURE testProc() SELECT * FROM t1;
CREATE VIEW testView as SELECT * from t1;
CREATE FUNCTION testFunc()
RETURNS INT
BEGIN
return 1;
END;|
CREATE TRIGGER testTrig BEFORE INSERT ON t1
FOR EACH ROW BEGIN
UPDATE t1 SET id = id +1;
END;|
CREATE EVENT testEvent ON SCHEDULE
EVERY 1 DAY
DO
BEGIN
UPDATE t1 SET id = id +1;
END;|
Chceck Result
select
(@a:=load_file("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug39526.binlog"))
is not null;
(@a:=load_file("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug39526.binlog"))
is not null
1
*** String sql_mode=0 is found: 0 ***
Clean Up
DROP PROCEDURE testProc;
DROP FUNCTION testFunc;
DROP TRIGGER testTrig;
DROP EVENT testEvent;
DROP VIEW testView;
DROP TABLE t1;
SET @@global.sql_mode= @old_sql_mode;
SET @@session.binlog_format=@old_binlog_format;
mysql-test/suite/binlog/t/binlog_sql_mode.test
0 → 100644
View file @
d65f6b54
# ==== Purpose ====
#
# Test that sql_mode can correct restore before generating the binlog event
# when creating CREATEable objects.
#
# ==== Method ====
#
# Scan binlog file to check if the sql_mode is still set to 0 before generating binlog event
#
--
source
include
/
master
-
slave
.
inc
--
source
include
/
have_log_bin
.
inc
# BUG#39526 sql_mode not retained in binary log for CREATE PROCEDURE
SET
@
old_sql_mode
=
@@
global
.
sql_mode
;
SET
@
old_binlog_format
=@@
session
.
binlog_format
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
SET
SESSION
sql_mode
=
8
;
--
echo
Initialization
RESET
MASTER
;
CREATE
TABLE
t1
(
id
INT
);
CREATE
PROCEDURE
testProc
()
SELECT
*
FROM
t1
;
CREATE
VIEW
testView
as
SELECT
*
from
t1
;
DELIMITER
|
;
CREATE
FUNCTION
testFunc
()
RETURNS
INT
BEGIN
return
1
;
END
;
|
DELIMITER
;
|
DELIMITER
|
;
CREATE
TRIGGER
testTrig
BEFORE
INSERT
ON
t1
FOR
EACH
ROW
BEGIN
UPDATE
t1
SET
id
=
id
+
1
;
END
;
|
DELIMITER
;
|
DELIMITER
|
;
CREATE
EVENT
testEvent
ON
SCHEDULE
EVERY
1
DAY
DO
BEGIN
UPDATE
t1
SET
id
=
id
+
1
;
END
;
|
DELIMITER
;
|
--
echo
Chceck
Result
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
--
exec
$MYSQL_BINLOG
$MYSQLD_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_bug39526
.
binlog
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
select
(
@
a
:=
load_file
(
"
$MYSQLTEST_VARDIR
/tmp/mysqlbinlog_bug39526.binlog"
))
is
not
null
;
let
$s_mode_unsigned
=
`select @a like "%@@session.sql_mode=0%" /* must return 0 */`
;
echo
***
String
sql_mode
=
0
is
found
:
$s_mode_unsigned
***
;
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqlbinlog_bug39526
.
binlog
--
echo
Clean
Up
DROP
PROCEDURE
testProc
;
DROP
FUNCTION
testFunc
;
DROP
TRIGGER
testTrig
;
DROP
EVENT
testEvent
;
DROP
VIEW
testView
;
DROP
TABLE
t1
;
SET
@@
global
.
sql_mode
=
@
old_sql_mode
;
SET
@@
session
.
binlog_format
=@
old_binlog_format
;
mysql-test/suite/funcs_1/r/myisam_views.result
View file @
d65f6b54
No preview for this file type
mysql-test/t/ddl_i18n_koi8r.test
View file @
d65f6b54
...
@@ -143,10 +143,12 @@ set names koi8r|
...
@@ -143,10 +143,12 @@ set names koi8r|
# - Dump mysqltest1;
# - Dump mysqltest1;
--
let
$views_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
views_dump1
# - Clean mysqltest1;
# - Clean mysqltest1;
...
@@ -161,7 +163,9 @@ DROP DATABASE mysqltest1|
...
@@ -161,7 +163,9 @@ DROP DATABASE mysqltest1|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
views
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$views_dump1
--
remove_file
$views_dump1
#
#
# Third-round checks.
# Third-round checks.
...
@@ -398,6 +402,9 @@ set names koi8r|
...
@@ -398,6 +402,9 @@ set names koi8r|
# - Dump mysqltest1, mysqltest2;
# - Dump mysqltest1, mysqltest2;
--
let
$sp_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
let
$sp_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest1
--
echo
--->
Dump
of
mysqltest1
...
@@ -406,7 +413,7 @@ set names koi8r|
...
@@ -406,7 +413,7 @@ set names koi8r|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
sp_dump1
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest2
--
echo
--->
Dump
of
mysqltest2
...
@@ -416,7 +423,7 @@ set names koi8r|
...
@@ -416,7 +423,7 @@ set names koi8r|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
sp_dump2
# - Clean mysqltest1, mysqltest2;
# - Clean mysqltest1, mysqltest2;
...
@@ -432,10 +439,13 @@ DROP DATABASE mysqltest2|
...
@@ -432,10 +439,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
sp_dump1
--
echo
--->
Restoring
mysqltest2
...
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
sp
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$sp_dump2
--
remove_file
$sp_dump1
--
remove_file
$sp_dump2
#
#
# Third-round checks.
# Third-round checks.
...
@@ -669,6 +679,9 @@ use mysqltest1|
...
@@ -669,6 +679,9 @@ use mysqltest1|
# - Dump mysqltest1, mysqltest2
;
# - Dump mysqltest1, mysqltest2
;
--
let
$triggers_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
let
$triggers_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest1
--
echo
--->
Dump
of
mysqltest1
...
@@ -677,7 +690,7 @@ use mysqltest1|
...
@@ -677,7 +690,7 @@ use mysqltest1|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
triggers_dump1
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest2
--
echo
--->
Dump
of
mysqltest2
...
@@ -687,7 +700,7 @@ use mysqltest1|
...
@@ -687,7 +700,7 @@ use mysqltest1|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
triggers_dump2
# - Clean mysqltest1, mysqltest2;
# - Clean mysqltest1, mysqltest2;
...
@@ -703,10 +716,13 @@ DROP DATABASE mysqltest2|
...
@@ -703,10 +716,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
triggers_dump1
--
echo
--->
Restoring
mysqltest2
...
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
triggers
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$triggers_dump2
--
remove_file
$triggers_dump1
--
remove_file
$triggers_dump2
#
#
# Third-round checks.
# Third-round checks.
...
@@ -924,6 +940,9 @@ set names koi8r|
...
@@ -924,6 +940,9 @@ set names koi8r|
# - Dump mysqltest1, mysqltest2;
# - Dump mysqltest1, mysqltest2;
--
let
$events_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
let
$events_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest1
--
echo
--->
Dump
of
mysqltest1
...
@@ -932,7 +951,7 @@ set names koi8r|
...
@@ -932,7 +951,7 @@ set names koi8r|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
events_dump1
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest2
--
echo
--->
Dump
of
mysqltest2
...
@@ -942,7 +961,7 @@ set names koi8r|
...
@@ -942,7 +961,7 @@ set names koi8r|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
events_dump2
# - Clean mysqltest1, mysqltest2;
# - Clean mysqltest1, mysqltest2;
...
@@ -958,10 +977,13 @@ DROP DATABASE mysqltest2|
...
@@ -958,10 +977,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
events_dump1
--
echo
--->
Restoring
mysqltest2
...
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_koi8r
.
events
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$events_dump2
--
remove_file
$events_dump1
--
remove_file
$events_dump2
#
#
# Third-round checks.
# Third-round checks.
...
...
mysql-test/t/ddl_i18n_utf8.test
View file @
d65f6b54
...
@@ -143,10 +143,12 @@ set names utf8|
...
@@ -143,10 +143,12 @@ set names utf8|
# - Dump mysqltest1;
# - Dump mysqltest1;
--
let
$views_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
databases
mysqltest1
>
$
views_dump1
# - Clean mysqltest1;
# - Clean mysqltest1;
...
@@ -161,7 +163,9 @@ DROP DATABASE mysqltest1|
...
@@ -161,7 +163,9 @@ DROP DATABASE mysqltest1|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8views
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$views_dump1
--
remove_file
$views_dump1
#
#
# Third-round checks.
# Third-round checks.
...
@@ -398,6 +402,9 @@ set names utf8|
...
@@ -398,6 +402,9 @@ set names utf8|
# - Dump mysqltest1, mysqltest2;
# - Dump mysqltest1, mysqltest2;
--
let
$sp_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
let
$sp_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest1
--
echo
--->
Dump
of
mysqltest1
...
@@ -406,7 +413,7 @@ set names utf8|
...
@@ -406,7 +413,7 @@ set names utf8|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest1
>
$
sp_dump1
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest2
--
echo
--->
Dump
of
mysqltest2
...
@@ -416,7 +423,7 @@ set names utf8|
...
@@ -416,7 +423,7 @@ set names utf8|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
routines
--
databases
mysqltest2
>
$
sp_dump2
# - Clean mysqltest1, mysqltest2;
# - Clean mysqltest1, mysqltest2;
...
@@ -432,10 +439,13 @@ DROP DATABASE mysqltest2|
...
@@ -432,10 +439,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
sp_dump1
--
echo
--->
Restoring
mysqltest2
...
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8sp
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$sp_dump2
--
remove_file
$sp_dump1
--
remove_file
$sp_dump2
#
#
# Third-round checks.
# Third-round checks.
...
@@ -669,6 +679,9 @@ use mysqltest1|
...
@@ -669,6 +679,9 @@ use mysqltest1|
# - Dump mysqltest1, mysqltest2
;
# - Dump mysqltest1, mysqltest2
;
--
let
$triggers_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
let
$triggers_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest1
--
echo
--->
Dump
of
mysqltest1
...
@@ -677,7 +690,7 @@ use mysqltest1|
...
@@ -677,7 +690,7 @@ use mysqltest1|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest1
>
$
triggers_dump1
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest2
--
echo
--->
Dump
of
mysqltest2
...
@@ -687,7 +700,7 @@ use mysqltest1|
...
@@ -687,7 +700,7 @@ use mysqltest1|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
triggers
--
databases
mysqltest2
>
$
triggers_dump2
# - Clean mysqltest1, mysqltest2;
# - Clean mysqltest1, mysqltest2;
...
@@ -703,10 +716,13 @@ DROP DATABASE mysqltest2|
...
@@ -703,10 +716,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
triggers_dump1
--
echo
--->
Restoring
mysqltest2
...
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8triggers
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$triggers_dump2
--
remove_file
$triggers_dump1
--
remove_file
$triggers_dump2
#
#
# Third-round checks.
# Third-round checks.
...
@@ -924,6 +940,9 @@ set names utf8|
...
@@ -924,6 +940,9 @@ set names utf8|
# - Dump mysqltest1, mysqltest2;
# - Dump mysqltest1, mysqltest2;
--
let
$events_dump1
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
let
$events_dump2
=
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest1
--
echo
--->
Dump
of
mysqltest1
...
@@ -932,7 +951,7 @@ set names utf8|
...
@@ -932,7 +951,7 @@ set names utf8|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
echo
--->
Dumping
mysqltest1
to
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest1
>
$
events_dump1
--
echo
--
echo
--
echo
--->
Dump
of
mysqltest2
--
echo
--->
Dump
of
mysqltest2
...
@@ -942,7 +961,7 @@ set names utf8|
...
@@ -942,7 +961,7 @@ set names utf8|
--
echo
--
echo
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
echo
--->
Dumping
mysqltest2
to
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
exec
$MYSQL_DUMP
--
character
-
sets
-
dir
=
$CHARSETSDIR
--
compact
--
events
--
databases
mysqltest2
>
$
events_dump2
# - Clean mysqltest1, mysqltest2;
# - Clean mysqltest1, mysqltest2;
...
@@ -958,10 +977,13 @@ DROP DATABASE mysqltest2|
...
@@ -958,10 +977,13 @@ DROP DATABASE mysqltest2|
--
echo
--
echo
--
echo
--->
Restoring
mysqltest1
...
--
echo
--->
Restoring
mysqltest1
...
--
exec
$MYSQL
test
<
$
MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest1
.
sql
--
exec
$MYSQL
test
<
$
events_dump1
--
echo
--->
Restoring
mysqltest2
...
--
echo
--->
Restoring
mysqltest2
...
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
ddl_i18n_utf8events
.
mysqltest2
.
sql
--
exec
$MYSQL
test
<
$events_dump2
--
remove_file
$events_dump1
--
remove_file
$events_dump2
#
#
# Third-round checks.
# Third-round checks.
...
...
mysql-test/t/drop.test
View file @
d65f6b54
...
@@ -150,17 +150,30 @@ DROP DATABASE IF EXISTS mysql_test;
...
@@ -150,17 +150,30 @@ DROP DATABASE IF EXISTS mysql_test;
CREATE
DATABASE
mysql_test
;
CREATE
DATABASE
mysql_test
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
--
copy_file
$MYSQLD_DATADIR
/
mysql
/
proc
.
frm
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
frm
--
copy_file
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYD
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYD
--
let
$proc_frm
=
$MYSQLD_DATADIR
/
mysql
/
proc
.
frm
--
copy_file
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYI
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYI
--
let
$proc_MYD
=
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYD
--
let
$proc_MYI
=
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYI
--
let
$copy_of_proc_frm
=
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
copy
.
frm
--
let
$copy_of_proc_MYD
=
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
copy
.
MYD
--
let
$copy_of_proc_MYI
=
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
copy
.
MYI
--
copy_file
$proc_frm
$copy_of_proc_frm
--
copy_file
$proc_MYD
$copy_of_proc_MYD
--
copy_file
$proc_MYI
$copy_of_proc_MYI
DROP
TABLE
mysql
.
proc
;
DROP
TABLE
mysql
.
proc
;
DROP
DATABASE
mysql_test
;
DROP
DATABASE
mysql_test
;
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
frm
$MYSQLD_DATADIR
/
mysql
/
proc
.
frm
--
copy_file
$copy_of_proc_frm
$proc_frm
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYD
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYD
--
copy_file
$copy_of_proc_MYD
$proc_MYD
--
copy_file
$MYSQLTEST_VARDIR
/
tmp
/
bug29958
.
proc
.
MYI
$MYSQLD_DATADIR
/
mysql
/
proc
.
MYI
--
copy_file
$copy_of_proc_MYI
$proc_MYI
--
remove_file
$copy_of_proc_frm
--
remove_file
$copy_of_proc_MYD
--
remove_file
$copy_of_proc_MYI
--
echo
--
echo
--
echo
# --
--
echo
# --
...
...
mysql-test/t/skip_name_resolve.test
View file @
d65f6b54
...
@@ -15,6 +15,9 @@ DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
...
@@ -15,6 +15,9 @@ DROP USER mysqltest_1@'127.0.0.1/255.255.255.255';
connect
(
con1
,
127.0
.
0.1
,
root
,
,
test
,
$MASTER_MYPORT
,
);
connect
(
con1
,
127.0
.
0.1
,
root
,
,
test
,
$MASTER_MYPORT
,
);
--
replace_column
1
#
--
replace_column
1
#
select
user
();
select
user
();
--
replace_column
1
<
id
>
3
<
host
>
5
<
command
>
6
<
time
>
7
<
state
>
8
<
info
>
# We are only interested in the fact that statement below doesn't
# crash server.
--
disable_result_log
show
processlist
;
show
processlist
;
--
enable_result_log
connection
default
;
connection
default
;
sql/sp.cc
View file @
d65f6b54
...
@@ -936,10 +936,12 @@ sp_create_routine(THD *thd, int type, sp_head *sp)
...
@@ -936,10 +936,12 @@ sp_create_routine(THD *thd, int type, sp_head *sp)
ret
=
SP_INTERNAL_ERROR
;
ret
=
SP_INTERNAL_ERROR
;
goto
done
;
goto
done
;
}
}
/* restore sql_mode when binloging */
thd
->
variables
.
sql_mode
=
saved_mode
;
/* Such a statement can always go directly to binlog, no trans cache */
/* Such a statement can always go directly to binlog, no trans cache */
thd
->
binlog_query
(
THD
::
MYSQL_QUERY_TYPE
,
thd
->
binlog_query
(
THD
::
MYSQL_QUERY_TYPE
,
log_query
.
c_ptr
(),
log_query
.
length
(),
FALSE
,
FALSE
);
log_query
.
c_ptr
(),
log_query
.
length
(),
FALSE
,
FALSE
);
thd
->
variables
.
sql_mode
=
0
;
}
}
}
}
...
...
sql/sql_table.cc
View file @
d65f6b54
...
@@ -4298,7 +4298,8 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
...
@@ -4298,7 +4298,8 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
ER_VIEW_CHECKSUM
,
ER
(
ER_VIEW_CHECKSUM
));
ER_VIEW_CHECKSUM
,
ER
(
ER_VIEW_CHECKSUM
));
if
(
thd
->
main_da
.
is_error
()
&&
if
(
thd
->
main_da
.
is_error
()
&&
thd
->
main_da
.
sql_errno
()
==
ER_NO_SUCH_TABLE
)
(
thd
->
main_da
.
sql_errno
()
==
ER_NO_SUCH_TABLE
||
thd
->
main_da
.
sql_errno
()
==
ER_FILE_NOT_FOUND
))
/* A missing table is just issued as a failed command */
/* A missing table is just issued as a failed command */
result_code
=
HA_ADMIN_FAILED
;
result_code
=
HA_ADMIN_FAILED
;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment