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
ae9f0285
Commit
ae9f0285
authored
Mar 03, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update paths
Add missing drop view
parent
7186bc01
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test
mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test
+4
-3
mysql-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result
...l-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result
+1
-1
mysql-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result
...l-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result
+2
-2
mysql-test/suite/binlog/r/binlog_unsafe.result
mysql-test/suite/binlog/r/binlog_unsafe.result
+1
-0
mysql-test/suite/binlog/t/binlog_unsafe.test
mysql-test/suite/binlog/t/binlog_unsafe.test
+1
-0
No files found.
mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test
View file @
ae9f0285
...
...
@@ -317,17 +317,18 @@ connection con4;
select
get_lock
(
"a"
,
10
);
# wait for rollback to finish
flush
logs
;
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
# we check that the error code of the "ROLLBACK" event is 0 and not
# ER_SERVER_SHUTDOWN (i.e. disconnection just rolls back transaction
# and does not make slave to stop)
if
(
`select @@binlog_format = 'ROW'`
)
{
--
exec
$MYSQL_BINLOG
--
start
-
position
=
524
$MYSQL
TEST_VARDIR
/
log
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mix_innodb_myisam_binlog
.
output
--
exec
$MYSQL_BINLOG
--
start
-
position
=
524
$MYSQL
D_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mix_innodb_myisam_binlog
.
output
}
if
(
`select @@binlog_format = 'STATEMENT' || @@binlog_format = 'MIXED'`
)
{
--
exec
$MYSQL_BINLOG
--
start
-
position
=
555
$MYSQL
TEST_VARDIR
/
log
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mix_innodb_myisam_binlog
.
output
--
exec
$MYSQL_BINLOG
--
start
-
position
=
555
$MYSQL
D_DATADIR
/
master
-
bin
.
000001
>
$MYSQLTEST_VARDIR
/
tmp
/
mix_innodb_myisam_binlog
.
output
}
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
...
...
@@ -618,7 +619,7 @@ CREATE TABLE t5 (a int, PRIMARY KEY (a)) ENGINE=InnoDB;
# execute
--
error
ER_DUP_ENTRY
load
data
infile
'../
std_data_ln
/rpl_loaddata.dat'
into
table
t4
(
a
,
@
b
)
set
b
=
@
b
+
bug27417
(
2
);
load
data
infile
'../
../std_data
/rpl_loaddata.dat'
into
table
t4
(
a
,
@
b
)
set
b
=
@
b
+
bug27417
(
2
);
# check
select
*
from
t4
;
select
count
(
*
)
from
t1
/* must be 2 */
;
...
...
mysql-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result
View file @
ae9f0285
...
...
@@ -653,7 +653,7 @@ delete from t1;
create table t4 (a int default 0, b int primary key) engine=innodb;
insert into t4 values (0, 17);
reset master;
load data infile '../
std_data_ln
/rpl_loaddata.dat' into table t4 (a, @b) set b= @b + bug27417(2);
load data infile '../
../std_data
/rpl_loaddata.dat' into table t4 (a, @b) set b= @b + bug27417(2);
ERROR 23000: Duplicate entry '17' for key 'PRIMARY'
select * from t4;
a b
...
...
mysql-test/suite/binlog/r/binlog_stm_mix_innodb_myisam.result
View file @
ae9f0285
...
...
@@ -611,7 +611,7 @@ delete from t1;
create table t4 (a int default 0, b int primary key) engine=innodb;
insert into t4 values (0, 17);
reset master;
load data infile '../
std_data_ln
/rpl_loaddata.dat' into table t4 (a, @b) set b= @b + bug27417(2);
load data infile '../
../std_data
/rpl_loaddata.dat' into table t4 (a, @b) set b= @b + bug27417(2);
ERROR 23000: Duplicate entry '17' for key 'PRIMARY'
select * from t4;
a b
...
...
@@ -625,7 +625,7 @@ master-bin.000001 # Query # # use `test`; BEGIN
master-bin.000001 # Intvar # # INSERT_ID=10
master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=12
master-bin.000001 # Intvar # # INSERT_ID=10
master-bin.000001 # Execute_load_query # # use `test`; load data infile '../
std_data_ln
/rpl_loaddata.dat' into table t4 (a, @b) set b= @b + bug27417(2) ;file_id=#
master-bin.000001 # Execute_load_query # # use `test`; load data infile '../
../std_data
/rpl_loaddata.dat' into table t4 (a, @b) set b= @b + bug27417(2) ;file_id=#
master-bin.000001 # Query # # use `test`; ROLLBACK
/* the output must denote there is the query */;
drop trigger trg_del_t2;
...
...
mysql-test/suite/binlog/r/binlog_unsafe.result
View file @
ae9f0285
...
...
@@ -11,3 +11,4 @@ Level Warning
Code 1592
Message Statement is not safe to log in statement format.
DROP TABLE t1,t2,t3;
DROP VIEW v1;
mysql-test/suite/binlog/t/binlog_unsafe.test
View file @
ae9f0285
...
...
@@ -14,5 +14,6 @@ INSERT INTO t1 SELECT UUID();
query_vertical
SHOW
WARNINGS
;
DROP
TABLE
t1
,
t2
,
t3
;
DROP
VIEW
v1
;
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