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
386ad0f1
Commit
386ad0f1
authored
Apr 05, 2007
by
jani@ua141d10.elisa.omakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for tests after merge from 5.0
parent
e40d3631
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
151 additions
and
152 deletions
+151
-152
mysql-test/r/grant.result
mysql-test/r/grant.result
+30
-30
mysql-test/r/mysqlbinlog2.result
mysql-test/r/mysqlbinlog2.result
+0
-2
mysql-test/r/sp.result
mysql-test/r/sp.result
+85
-84
mysql-test/r/sp_trans.result
mysql-test/r/sp_trans.result
+25
-21
mysql-test/t/mysqlbinlog2.test
mysql-test/t/mysqlbinlog2.test
+5
-5
mysql-test/t/sp_trans.test
mysql-test/t/sp_trans.test
+2
-2
sql/sql_class.cc
sql/sql_class.cc
+2
-0
sql/sql_error.cc
sql/sql_error.cc
+2
-8
No files found.
mysql-test/r/grant.result
View file @
386ad0f1
...
@@ -260,29 +260,29 @@ GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' IDENTIFIED BY PASSWORD '*2470C0C
...
@@ -260,29 +260,29 @@ GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost' IDENTIFIED BY PASSWORD '*2470C0C
GRANT SELECT, INSERT, UPDATE ON `test`.* TO 'mysqltest_1'@'localhost'
GRANT SELECT, INSERT, UPDATE ON `test`.* TO 'mysqltest_1'@'localhost'
drop user mysqltest_1@localhost;
drop user mysqltest_1@localhost;
SET NAMES koi8r;
SET NAMES koi8r;
CREATE DATABASE
ツト
;
CREATE DATABASE ;
USE
ツト
;
USE ;
CREATE TABLE
ヤチツ (ヒマフ
int);
CREATE TABLE
(
int);
GRANT SELECT ON
ツト.* TO タレナメ
@localhost;
GRANT SELECT ON
.* TO
@localhost;
SHOW GRANTS FOR
タレナメ
@localhost;
SHOW GRANTS FOR @localhost;
Grants for
タレナメ
@localhost
Grants for @localhost
GRANT USAGE ON *.* TO '
タレナメ
'@'localhost'
GRANT USAGE ON *.* TO ''@'localhost'
GRANT SELECT ON `
ツト`.* TO 'タレナメ
'@'localhost'
GRANT SELECT ON `
`.* TO '
'@'localhost'
REVOKE SELECT ON
ツト.* FROM タレナメ
@localhost;
REVOKE SELECT ON
.* FROM
@localhost;
GRANT SELECT ON
ツト.ヤチツ TO タレナメ
@localhost;
GRANT SELECT ON
. TO
@localhost;
SHOW GRANTS FOR
タレナメ
@localhost;
SHOW GRANTS FOR @localhost;
Grants for
タレナメ
@localhost
Grants for @localhost
GRANT USAGE ON *.* TO '
タレナメ
'@'localhost'
GRANT USAGE ON *.* TO ''@'localhost'
GRANT SELECT ON `
ツト`.`ヤチツ` TO 'タレナメ
'@'localhost'
GRANT SELECT ON `
`.`` TO '
'@'localhost'
REVOKE SELECT ON
ツト.ヤチツ FROM タレナメ
@localhost;
REVOKE SELECT ON
. FROM
@localhost;
GRANT SELECT (
ヒマフ) ON ツト.ヤチツ TO タレナメ
@localhost;
GRANT SELECT (
) ON . TO
@localhost;
SHOW GRANTS FOR
タレナメ
@localhost;
SHOW GRANTS FOR @localhost;
Grants for
タレナメ
@localhost
Grants for @localhost
GRANT USAGE ON *.* TO '
タレナメ
'@'localhost'
GRANT USAGE ON *.* TO ''@'localhost'
GRANT SELECT (
ヒマフ) ON `ツト`.`ヤチツ` TO 'タレナメ
'@'localhost'
GRANT SELECT (
) ON ``.`` TO '
'@'localhost'
REVOKE SELECT (
ヒマフ) ON ツト.ヤチツ FROM タレナメ
@localhost;
REVOKE SELECT (
) ON . FROM
@localhost;
DROP USER
タレナメ
@localhost;
DROP USER @localhost;
DROP DATABASE
ツト
;
DROP DATABASE ;
SET NAMES latin1;
SET NAMES latin1;
USE test;
USE test;
CREATE TABLE t1 (a int );
CREATE TABLE t1 (a int );
...
@@ -613,22 +613,22 @@ set @user123="non-existent";
...
@@ -613,22 +613,22 @@ set @user123="non-existent";
select * from mysql.db where user=@user123;
select * from mysql.db where user=@user123;
Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv
Host Db User Select_priv Insert_priv Update_priv Delete_priv Create_priv Drop_priv Grant_priv References_priv Index_priv Alter_priv Create_tmp_table_priv Lock_tables_priv Create_view_priv Show_view_priv Create_routine_priv Alter_routine_priv Execute_priv Event_priv Trigger_priv
set names koi8r;
set names koi8r;
create database
ツト
;
create database ;
grant select on
ツト
.* to root@localhost;
grant select on .* to root@localhost;
select hex(Db) from mysql.db where Db='
ツト
';
select hex(Db) from mysql.db where Db='';
hex(Db)
hex(Db)
D0B1D0B4
D0B1D0B4
show grants for root@localhost;
show grants for root@localhost;
Grants for root@localhost
Grants for root@localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
GRANT SELECT ON `
ツト
`.* TO 'root'@'localhost'
GRANT SELECT ON ``.* TO 'root'@'localhost'
flush privileges;
flush privileges;
show grants for root@localhost;
show grants for root@localhost;
Grants for root@localhost
Grants for root@localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
GRANT SELECT ON `
ツト
`.* TO 'root'@'localhost'
GRANT SELECT ON ``.* TO 'root'@'localhost'
drop database
ツト
;
drop database ;
revoke all privileges on
ツト
.* from root@localhost;
revoke all privileges on .* from root@localhost;
show grants for root@localhost;
show grants for root@localhost;
Grants for root@localhost
Grants for root@localhost
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
...
...
mysql-test/r/mysqlbinlog2.result
View file @
386ad0f1
...
@@ -134,7 +134,6 @@ SET @@session.sql_mode=0/*!*/;
...
@@ -134,7 +134,6 @@ SET @@session.sql_mode=0/*!*/;
/*!\C latin1 *//*!*/;
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
insert into t1 values(null, "d")/*!*/;
insert into t1 values(null, "d")/*!*/;
SET INSERT_ID=5/*!*/;
DELIMITER ;
DELIMITER ;
# End of log file
# End of log file
ROLLBACK /* added by mysqlbinlog */;
ROLLBACK /* added by mysqlbinlog */;
...
@@ -512,7 +511,6 @@ SET @@session.sql_mode=0/*!*/;
...
@@ -512,7 +511,6 @@ SET @@session.sql_mode=0/*!*/;
/*!\C latin1 *//*!*/;
/*!\C latin1 *//*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
insert into t1 values(null, "d")/*!*/;
insert into t1 values(null, "d")/*!*/;
SET INSERT_ID=5/*!*/;
DELIMITER ;
DELIMITER ;
# End of log file
# End of log file
ROLLBACK /* added by mysqlbinlog */;
ROLLBACK /* added by mysqlbinlog */;
...
...
mysql-test/r/sp.result
View file @
386ad0f1
...
@@ -5643,90 +5643,6 @@ t3_id_1 t3_id_2 t4_id
...
@@ -5643,90 +5643,6 @@ t3_id_1 t3_id_2 t4_id
DROP PROCEDURE p1|
DROP PROCEDURE p1|
DROP VIEW v1, v2|
DROP VIEW v1, v2|
DROP TABLE t3, t4|
DROP TABLE t3, t4|
drop function if exists bug20777|
drop table if exists examplebug20777|
create function bug20777(f1 bigint unsigned) returns bigint unsigned
begin
set f1 = (f1 - 10); set f1 = (f1 10);
return f1;
end|
select bug20777(9223372036854775803) as '9223372036854775803 2**63-5';
9223372036854775803 2**63-5
9223372036854775803
select bug20777(9223372036854775804) as '9223372036854775804 2**63-4';
9223372036854775804 2**63-4
9223372036854775804
select bug20777(9223372036854775805) as '9223372036854775805 2**63-3';
9223372036854775805 2**63-3
9223372036854775805
select bug20777(9223372036854775806) as '9223372036854775806 2**63-2';
9223372036854775806 2**63-2
9223372036854775806
select bug20777(9223372036854775807) as '9223372036854775807 2**63-1';
9223372036854775807 2**63-1
9223372036854775807
select bug20777(9223372036854775808) as '9223372036854775808 2**63+0';
9223372036854775808 2**63+0
9223372036854775808
select bug20777(9223372036854775809) as '9223372036854775809 2**63+1';
9223372036854775809 2**63+1
9223372036854775809
select bug20777(9223372036854775810) as '9223372036854775810 2**63+2';
9223372036854775810 2**63+2
9223372036854775810
select bug20777(-9223372036854775808) as 'lower bounds signed bigint';
lower bounds signed bigint
0
select bug20777(9223372036854775807) as 'upper bounds signed bigint';
upper bounds signed bigint
9223372036854775807
select bug20777(0) as 'lower bounds unsigned bigint';
lower bounds unsigned bigint
0
select bug20777(18446744073709551615) as 'upper bounds unsigned bigint';
upper bounds unsigned bigint
18446744073709551615
select bug20777(18446744073709551616) as 'upper bounds unsigned bigint 1';
upper bounds unsigned bigint 1
18446744073709551615
select bug20777(-1) as 'lower bounds unsigned bigint - 1';
lower bounds unsigned bigint - 1
0
create table examplebug20777 as select
0 as 'i',
bug20777(9223372036854775806) as '2**63-2',
bug20777(9223372036854775807) as '2**63-1',
bug20777(9223372036854775808) as '2**63',
bug20777(9223372036854775809) as '2**63+1',
bug20777(18446744073709551614) as '2**64-2',
bug20777(18446744073709551615) as '2**64-1',
bug20777(18446744073709551616) as '2**64',
bug20777(0) as '0',
bug20777(-1) as '-1';
insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807, 223372036854775808, 9223372036854775809, 18446744073709551614, 18446744073709551615, 8446744073709551616, 0, -1);
show create table examplebug20777;
Table Create Table
examplebug20777 CREATE TABLE `examplebug20777` (
`i` int(1) NOT NULL DEFAULT '0',
`2**63-2` bigint(20) unsigned DEFAULT NULL,
`2**63-1` bigint(20) unsigned DEFAULT NULL,
`2**63` bigint(20) unsigned DEFAULT NULL,
`2**63+1` bigint(20) unsigned DEFAULT NULL,
`2**64-2` bigint(20) unsigned DEFAULT NULL,
`2**64-1` bigint(20) unsigned DEFAULT NULL,
`2**64` bigint(20) unsigned DEFAULT NULL,
`0` bigint(20) unsigned DEFAULT NULL,
`-1` bigint(20) unsigned DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
select * from examplebug20777 order by i;
i 2**63-2 2**63-1 2**63 2**63+1 2**64-2 2**64-1 2**64 0 -1
0 9223372036854775806 9223372036854775807 9223372036854775808 9223372036854775809 18446744073709551614 18446744073709551615 18446744073709551615 0 0
1 9223372036854775806 9223372036854775807 223372036854775808 9223372036854775809 18446744073709551614 18446744073709551615 8446744073709551616 0 0
drop table examplebug20777;
select bug20777(18446744073709551613)+1;
bug20777(18446744073709551613)+1
18446744073709551614
drop function bug20777;
End of 5.0 tests
End of 5.0 tests
Begin of 5.1 tests
Begin of 5.1 tests
drop function if exists pi;
drop function if exists pi;
...
@@ -6160,6 +6076,91 @@ DATABASE()
...
@@ -6160,6 +6076,91 @@ DATABASE()
NULL
NULL
DROP DATABASE mysqltest1|
DROP DATABASE mysqltest1|
use test|
use test|
drop function if exists bug20777|
drop table if exists examplebug20777|
create function bug20777(f1 bigint unsigned) returns bigint unsigned
begin
set f1 = (f1 - 10); set f1 = (f1 + 10);
return f1;
end|
select bug20777(9223372036854775803) as '9223372036854775803 2**63-5';
9223372036854775803 2**63-5
9223372036854775803
select bug20777(9223372036854775804) as '9223372036854775804 2**63-4';
9223372036854775804 2**63-4
9223372036854775804
select bug20777(9223372036854775805) as '9223372036854775805 2**63-3';
9223372036854775805 2**63-3
9223372036854775805
select bug20777(9223372036854775806) as '9223372036854775806 2**63-2';
9223372036854775806 2**63-2
9223372036854775806
select bug20777(9223372036854775807) as '9223372036854775807 2**63-1';
9223372036854775807 2**63-1
9223372036854775807
select bug20777(9223372036854775808) as '9223372036854775808 2**63+0';
9223372036854775808 2**63+0
9223372036854775808
select bug20777(9223372036854775809) as '9223372036854775809 2**63+1';
9223372036854775809 2**63+1
9223372036854775809
select bug20777(9223372036854775810) as '9223372036854775810 2**63+2';
9223372036854775810 2**63+2
9223372036854775810
select bug20777(-9223372036854775808) as 'lower bounds signed bigint';
lower bounds signed bigint
0
select bug20777(9223372036854775807) as 'upper bounds signed bigint';
upper bounds signed bigint
9223372036854775807
select bug20777(0) as 'lower bounds unsigned bigint';
lower bounds unsigned bigint
0
select bug20777(18446744073709551615) as 'upper bounds unsigned bigint';
upper bounds unsigned bigint
18446744073709551615
select bug20777(18446744073709551616) as 'upper bounds unsigned bigint + 1';
upper bounds unsigned bigint + 1
18446744073709551615
select bug20777(-1) as 'lower bounds unsigned bigint - 1';
lower bounds unsigned bigint - 1
0
create table examplebug20777 as select
0 as 'i',
bug20777(9223372036854775806) as '2**63-2',
bug20777(9223372036854775807) as '2**63-1',
bug20777(9223372036854775808) as '2**63',
bug20777(9223372036854775809) as '2**63+1',
bug20777(18446744073709551614) as '2**64-2',
bug20777(18446744073709551615) as '2**64-1',
bug20777(18446744073709551616) as '2**64',
bug20777(0) as '0',
bug20777(-1) as '-1';
insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807, 223372036854775808, 9223372036854775809, 18446744073709551614, 18446744073709551615, 8446744073709551616, 0, -1);
show create table examplebug20777;
Table Create Table
examplebug20777 CREATE TABLE `examplebug20777` (
`i` int(1) NOT NULL DEFAULT '0',
`2**63-2` bigint(20) unsigned DEFAULT NULL,
`2**63-1` bigint(20) unsigned DEFAULT NULL,
`2**63` bigint(20) unsigned DEFAULT NULL,
`2**63+1` bigint(20) unsigned DEFAULT NULL,
`2**64-2` bigint(20) unsigned DEFAULT NULL,
`2**64-1` bigint(20) unsigned DEFAULT NULL,
`2**64` bigint(20) unsigned DEFAULT NULL,
`0` bigint(20) unsigned DEFAULT NULL,
`-1` bigint(20) unsigned DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
select * from examplebug20777 order by i;
i 2**63-2 2**63-1 2**63 2**63+1 2**64-2 2**64-1 2**64 0 -1
0 9223372036854775806 9223372036854775807 9223372036854775808 9223372036854775809 18446744073709551614 18446744073709551615 18446744073709551615 0 0
1 9223372036854775806 9223372036854775807 223372036854775808 9223372036854775809 18446744073709551614 18446744073709551615 8446744073709551616 0 0
drop table examplebug20777;
select bug20777(18446744073709551613)+1;
bug20777(18446744073709551613)+1
18446744073709551614
drop function bug20777;
End of 5.0 tests.
drop table t1,t2;
drop table t1,t2;
CREATE TABLE t1 (a int auto_increment primary key) engine=MyISAM;
CREATE TABLE t1 (a int auto_increment primary key) engine=MyISAM;
CREATE TABLE t2 (a int auto_increment primary key, b int) engine=innodb;
CREATE TABLE t2 (a int auto_increment primary key, b int) engine=innodb;
...
...
mysql-test/r/sp_trans.result
View file @
386ad0f1
...
@@ -530,27 +530,6 @@ count(*)
...
@@ -530,27 +530,6 @@ count(*)
drop table t3, t4|
drop table t3, t4|
drop procedure bug14210|
drop procedure bug14210|
set @@session.max_heap_table_size=default|
set @@session.max_heap_table_size=default|
drop function if exists bug23333|
drop table if exists t1,t2|
CREATE TABLE t1 (a int NOT NULL auto_increment primary key) ENGINE=MyISAM|
CREATE TABLE t2 (a int NOT NULL auto_increment, b int, PRIMARY KEY (a)) ENGINE=InnoDB|
insert into t2 values (1,1)|
create function bug23333()
RETURNS int(11)
DETERMINISTIC
begin
insert into t1 values (null);
select count(*) from t1 into @a;
return @a;
end|
reset master|
insert into t2 values (bug23333(),1)|
ERROR 23000: Duplicate entry '1' for key 1
show binlog events from 98 /* with fixes for #23333 will show there is the query */|
Log_name Pos Event_type Server_id End_log_pos Info
select count(*),@a from t1 /* must be 1,1 */|
count(*) @a
1 1
CREATE DATABASE db_bug7787|
CREATE DATABASE db_bug7787|
use db_bug7787|
use db_bug7787|
CREATE PROCEDURE p1()
CREATE PROCEDURE p1()
...
@@ -577,3 +556,28 @@ f1 bug13575(f1)
...
@@ -577,3 +556,28 @@ f1 bug13575(f1)
3 ccc
3 ccc
drop function bug13575|
drop function bug13575|
drop table t3|
drop table t3|
drop function if exists bug23333|
drop table if exists t1,t2|
CREATE TABLE t1 (a int NOT NULL auto_increment primary key) ENGINE=MyISAM|
CREATE TABLE t2 (a int NOT NULL auto_increment, b int, PRIMARY KEY (a)) ENGINE=InnoDB|
insert into t2 values (1,1)|
create function bug23333()
RETURNS int(11)
DETERMINISTIC
begin
insert into t1 values (null);
select count(*) from t1 into @a;
return @a;
end|
reset master|
insert into t2 values (bug23333(),1)|
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
show binlog events from 106 /* with fixes for #23333 will show there is the query */|
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Table_map 1 # #
master-bin.000001 # Table_map 1 # #
master-bin.000001 # Write_rows 1 # #
master-bin.000001 # Query 1 # #
select count(*),@a from t1 /* must be 1,1 */|
count(*) @a
1 1
mysql-test/t/mysqlbinlog2.test
View file @
386ad0f1
...
@@ -60,7 +60,7 @@ select "--- stop-position --" as "";
...
@@ -60,7 +60,7 @@ select "--- stop-position --" as "";
--
disable_query_log
--
disable_query_log
select
"--- start and stop positions ---"
as
""
;
select
"--- start and stop positions ---"
as
""
;
--
enable_query_log
--
enable_query_log
--
exec
$MYSQL_BINLOG
--
short
-
form
--
start
-
position
=
60
0
--
stop
-
position
725
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000001
--
exec
$MYSQL_BINLOG
--
short
-
form
--
start
-
position
=
60
8
--
stop
-
position
725
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000001
--
disable_query_log
--
disable_query_log
select
"--- start-datetime --"
as
""
;
select
"--- start-datetime --"
as
""
;
--
enable_query_log
--
enable_query_log
...
@@ -115,14 +115,14 @@ select "--- start-position --" as "";
...
@@ -115,14 +115,14 @@ select "--- start-position --" as "";
--
enable_query_log
--
enable_query_log
--
exec
$MYSQL_BINLOG
--
short
-
form
--
start
-
position
=
608
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
exec
$MYSQL_BINLOG
--
short
-
form
--
start
-
position
=
608
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
disable_query_log
--
disable_query_log
select
"--- start and stop positions ---"
as
""
;
--
enable_query_log
--
exec
$MYSQL_BINLOG
--
short
-
form
--
start
-
position
=
600
--
stop
-
position
725
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
disable_query_log
select
"--- stop-position --"
as
""
;
select
"--- stop-position --"
as
""
;
--
enable_query_log
--
enable_query_log
--
exec
$MYSQL_BINLOG
--
short
-
form
--
stop
-
position
=
608
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
exec
$MYSQL_BINLOG
--
short
-
form
--
stop
-
position
=
608
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
disable_query_log
--
disable_query_log
select
"--- start and stop positions ---"
as
""
;
--
enable_query_log
--
exec
$MYSQL_BINLOG
--
short
-
form
--
start
-
position
=
608
--
stop
-
position
725
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
disable_query_log
select
"--- start-datetime --"
as
""
;
select
"--- start-datetime --"
as
""
;
--
enable_query_log
--
enable_query_log
--
exec
$MYSQL_BINLOG
--
short
-
form
"--start-datetime=2020-01-21 15:32:24"
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
--
exec
$MYSQL_BINLOG
--
short
-
form
"--start-datetime=2020-01-21 15:32:24"
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
...
...
mysql-test/t/sp_trans.test
View file @
386ad0f1
...
@@ -617,10 +617,10 @@ begin
...
@@ -617,10 +617,10 @@ begin
end
|
end
|
reset
master
|
reset
master
|
--
error
ER_DUP_ENTRY
--
error
ER_DUP_ENTRY
_WITH_KEY_NAME
insert
into
t2
values
(
bug23333
(),
1
)
|
insert
into
t2
values
(
bug23333
(),
1
)
|
--
replace_column
2
# 5 # 6 #
--
replace_column
2
# 5 # 6 #
show
binlog
events
from
98
/* with fixes for #23333 will show there is the query */
|
show
binlog
events
from
106
/* with fixes for #23333 will show there is the query */
|
select
count
(
*
),
@
a
from
t1
/* must be 1,1 */
|
select
count
(
*
),
@
a
from
t1
/* must be 1,1 */
|
#
#
...
...
sql/sql_class.cc
View file @
386ad0f1
...
@@ -367,6 +367,7 @@ void THD::init(void)
...
@@ -367,6 +367,7 @@ void THD::init(void)
if
(
variables
.
sql_mode
&
MODE_NO_BACKSLASH_ESCAPES
)
if
(
variables
.
sql_mode
&
MODE_NO_BACKSLASH_ESCAPES
)
server_status
|=
SERVER_STATUS_NO_BACKSLASH_ESCAPES
;
server_status
|=
SERVER_STATUS_NO_BACKSLASH_ESCAPES
;
options
=
thd_startup_options
;
options
=
thd_startup_options
;
no_trans_update
.
stmt
=
no_trans_update
.
all
=
FALSE
;
open_options
=
ha_open_options
;
open_options
=
ha_open_options
;
update_lock_default
=
(
variables
.
low_priority_updates
?
update_lock_default
=
(
variables
.
low_priority_updates
?
TL_WRITE_LOW_PRIORITY
:
TL_WRITE_LOW_PRIORITY
:
...
@@ -437,6 +438,7 @@ void THD::cleanup(void)
...
@@ -437,6 +438,7 @@ void THD::cleanup(void)
DBUG_ENTER
(
"THD::cleanup"
);
DBUG_ENTER
(
"THD::cleanup"
);
DBUG_ASSERT
(
cleanup_done
==
0
);
DBUG_ASSERT
(
cleanup_done
==
0
);
killed
=
KILL_CONNECTION
;
#ifdef ENABLE_WHEN_BINLOG_WILL_BE_ABLE_TO_PREPARE
#ifdef ENABLE_WHEN_BINLOG_WILL_BE_ABLE_TO_PREPARE
if
(
transaction
.
xid_state
.
xa_state
==
XA_PREPARED
)
if
(
transaction
.
xid_state
.
xa_state
==
XA_PREPARED
)
{
{
...
...
sql/sql_error.cc
View file @
386ad0f1
...
@@ -147,15 +147,9 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
...
@@ -147,15 +147,9 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
if
(
thd
->
warn_list
.
elements
<
thd
->
variables
.
max_error_count
)
if
(
thd
->
warn_list
.
elements
<
thd
->
variables
.
max_error_count
)
{
{
/*
/* We have to use warn_root, as mem_root is freed after each query */
The following code is here to change the allocation to not
if
((
err
=
new
(
&
thd
->
warn_root
)
MYSQL_ERROR
(
thd
,
code
,
level
,
msg
)))
use the thd->mem_root, which is freed after each query
*/
MEM_ROOT
*
old_root
=
thd
->
mem_root
;
thd
->
mem_root
=
&
thd
->
warn_root
;
if
((
err
=
new
MYSQL_ERROR
(
thd
,
code
,
level
,
msg
)))
thd
->
warn_list
.
push_back
(
err
);
thd
->
warn_list
.
push_back
(
err
);
thd
->
mem_root
=
old_root
;
}
}
thd
->
warn_count
[(
uint
)
level
]
++
;
thd
->
warn_count
[(
uint
)
level
]
++
;
thd
->
total_warn_count
++
;
thd
->
total_warn_count
++
;
...
...
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