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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
022a8e12
Commit
022a8e12
authored
May 20, 2009
by
He Zhenxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post fix of result file after push of BUG#42415
parent
984d0841
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
70 deletions
+70
-70
mysql-test/suite/binlog/r/binlog_stm_ps.result
mysql-test/suite/binlog/r/binlog_stm_ps.result
+1
-1
mysql-test/suite/binlog/r/binlog_unsafe.result
mysql-test/suite/binlog/r/binlog_unsafe.result
+61
-61
mysql-test/suite/binlog/t/binlog_unsafe.test
mysql-test/suite/binlog/t/binlog_unsafe.test
+2
-2
mysql-test/suite/rpl/r/rpl_stm_loadfile.result
mysql-test/suite/rpl/r/rpl_stm_loadfile.result
+2
-2
mysql-test/suite/rpl/r/rpl_udf.result
mysql-test/suite/rpl/r/rpl_udf.result
+4
-4
No files found.
mysql-test/suite/binlog/r/binlog_stm_ps.result
View file @
022a8e12
...
...
@@ -11,7 +11,7 @@ prepare s from "insert into t1 select 100 limit ?";
set @a=100;
execute s using @a;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
show binlog events from <binlog_start>;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query # # use `test`; create table t1 (a int)
...
...
mysql-test/suite/binlog/r/binlog_unsafe.result
View file @
022a8e12
...
...
@@ -10,25 +10,25 @@ INSERT DELAYED INTO t1 VALUES (5);
---- Insert directly ----
INSERT INTO t1 VALUES (@@global.sync_binlog);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t1 VALUES (@@session.insert_id);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t1 VALUES (@@global.auto_increment_increment);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t2 SELECT UUID();
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t2 VALUES (@@session.sql_mode);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t2 VALUES (@@global.init_slave);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t2 VALUES (@@hostname);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
---- Insert from stored procedure ----
CREATE PROCEDURE proc()
BEGIN
...
...
@@ -42,13 +42,13 @@ INSERT INTO t2 VALUES (@@hostname);
END|
CALL proc();
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
---- Insert from stored function ----
CREATE FUNCTION func()
RETURNS INT
...
...
@@ -66,13 +66,13 @@ SELECT func();
func()
0
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
---- Insert from trigger ----
CREATE TRIGGER trig
BEFORE INSERT ON trigger_table
...
...
@@ -88,14 +88,14 @@ INSERT INTO t2 VALUES (@@hostname);
END|
INSERT INTO trigger_table VALUES ('bye.');
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
---- Insert from prepared statement ----
PREPARE p1 FROM 'INSERT INTO t1 VALUES (@@global.sync_binlog)';
PREPARE p2 FROM 'INSERT INTO t1 VALUES (@@session.insert_id)';
...
...
@@ -106,25 +106,25 @@ PREPARE p6 FROM 'INSERT INTO t2 VALUES (@@global.init_slave)';
PREPARE p7 FROM 'INSERT INTO t2 VALUES (@@hostname)';
EXECUTE p1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
EXECUTE p2;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
EXECUTE p3;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
EXECUTE p4;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
EXECUTE p5;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
EXECUTE p6;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
EXECUTE p7;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
---- Insert from nested call of triggers / functions / procedures ----
CREATE PROCEDURE proc1()
INSERT INTO trigger_table VALUES ('ha!')|
...
...
@@ -154,13 +154,13 @@ EXECUTE prep6;
func5()
0
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
==== Variables that should *not* be unsafe ====
INSERT INTO t1 VALUES (@@session.pseudo_thread_id);
INSERT INTO t1 VALUES (@@session.pseudo_thread_id);
...
...
@@ -195,16 +195,16 @@ DROP TABLE t1, t2, t3, trigger_table, trigger_table2;
CREATE TABLE t1(a INT, b INT, KEY(a), PRIMARY KEY(b));
INSERT INTO t1 SELECT * FROM t1 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
REPLACE INTO t1 SELECT * FROM t1 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
UPDATE t1 SET a=1 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
DELETE FROM t1 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
CREATE PROCEDURE p1()
BEGIN
INSERT INTO t1 SELECT * FROM t1 LIMIT 1;
...
...
@@ -214,10 +214,10 @@ DELETE FROM t1 LIMIT 1;
END|
CALL p1();
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
DROP PROCEDURE p1;
DROP TABLE t1;
DROP TABLE IF EXISTS t1;
...
...
@@ -225,16 +225,16 @@ CREATE TABLE t1 (a VARCHAR(100), b VARCHAR(100));
INSERT INTO t1 VALUES ('a','b');
UPDATE t1 SET b = '%s%s%s%s%s%s%s%s%s%s%s%s%s%s' WHERE a = 'a' LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
DROP TABLE t1;
DROP TABLE IF EXISTS t1, t2;
CREATE TABLE t1(i INT PRIMARY KEY);
CREATE TABLE t2(i INT PRIMARY KEY);
CREATE TABLE t3(i INT, ch CHAR(50));
"Should issue message Statement
is not
safe to log in statement format."
"Should issue message Statement
may not be
safe to log in statement format."
INSERT INTO t1 SELECT * FROM t2 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
CREATE FUNCTION func6()
RETURNS INT
BEGIN
...
...
@@ -243,10 +243,10 @@ INSERT INTO t1 VALUES (11);
INSERT INTO t1 VALUES (12);
RETURN 0;
END|
"Should issue message Statement
is not
safe to log in statement format only once"
"Should issue message Statement
may not be
safe to log in statement format only once"
INSERT INTO t3 VALUES(func6(), UUID());
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
"Check whether SET @@SQL_LOG_BIN = 0/1 doesn't work in substatements"
CREATE FUNCTION fun_check_log_bin() RETURNS INT
BEGIN
...
...
@@ -259,7 +259,7 @@ SELECT fun_check_log_bin();
fun_check_log_bin()
100
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
"SQL_LOG_BIN should be ON still"
SHOW VARIABLES LIKE "SQL_LOG_BIN";
Variable_name Value
...
...
@@ -315,16 +315,16 @@ CREATE TABLE t1(i INT PRIMARY KEY);
CREATE TABLE t2(i INT PRIMARY KEY);
INSERT INTO t1 SELECT * FROM t2 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
INSERT INTO t1 VALUES(@@global.sync_binlog);
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
UPDATE t1 SET i = 999 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
DELETE FROM t1 LIMIT 1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
DROP TABLE t1, t2;
SET @@SESSION.SQL_MODE = @save_sql_mode;
"End of tests"
mysql-test/suite/binlog/t/binlog_unsafe.test
View file @
022a8e12
...
...
@@ -289,7 +289,7 @@ CREATE TABLE t1(i INT PRIMARY KEY);
CREATE
TABLE
t2
(
i
INT
PRIMARY
KEY
);
CREATE
TABLE
t3
(
i
INT
,
ch
CHAR
(
50
));
--
echo
"Should issue message Statement
is not
safe to log in statement format."
--
echo
"Should issue message Statement
may not be
safe to log in statement format."
INSERT
INTO
t1
SELECT
*
FROM
t2
LIMIT
1
;
DELIMITER
|
;
...
...
@@ -302,7 +302,7 @@ BEGIN
RETURN
0
;
END
|
DELIMITER
;
|
--
echo
"Should issue message Statement
is not
safe to log in statement format only once"
--
echo
"Should issue message Statement
may not be
safe to log in statement format only once"
INSERT
INTO
t3
VALUES
(
func6
(),
UUID
());
--
echo
"Check whether SET @@SQL_LOG_BIN = 0/1 doesn't work in substatements"
...
...
mysql-test/suite/rpl/r/rpl_stm_loadfile.result
View file @
022a8e12
...
...
@@ -10,7 +10,7 @@ CREATE TABLE test.t1 (a INT, blob_column LONGBLOB, PRIMARY KEY(a));
INSERT INTO test.t1 VALUES(1,'test');
UPDATE test.t1 SET blob_column=LOAD_FILE('../../std_data/words2.dat') WHERE a=1;
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
create procedure test.p1()
begin
INSERT INTO test.t1 VALUES(2,'test');
...
...
@@ -18,7 +18,7 @@ UPDATE test.t1 SET blob_column=LOAD_FILE('../../std_data/words2.dat') WHERE a=2;
end|
CALL test.p1();
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
SELECT * FROM test.t1 ORDER BY blob_column;
a blob_column
1 abase
...
...
mysql-test/suite/rpl/r/rpl_udf.result
View file @
022a8e12
...
...
@@ -182,19 +182,19 @@ CREATE TABLE t1(sum INT, price FLOAT(24)) ENGINE=MyISAM;
affected rows: 0
INSERT INTO t1 VALUES(myfunc_int(100), myfunc_double(50.00));
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
affected rows: 1
INSERT INTO t1 VALUES(myfunc_int(10), myfunc_double(5.00));
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
affected rows: 1
INSERT INTO t1 VALUES(myfunc_int(200), myfunc_double(25.00));
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
affected rows: 1
INSERT INTO t1 VALUES(myfunc_int(1), myfunc_double(500.00));
Warnings:
Note 1592 Statement
is not
safe to log in statement format.
Note 1592 Statement
may not be
safe to log in statement format.
affected rows: 1
SELECT * FROM t1 ORDER BY sum;
sum price
...
...
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