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
1e5fa89d
Commit
1e5fa89d
authored
Feb 01, 2008
by
mkindahl@dl145h.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl-merge
into dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl-merge
parents
20a5cc25
e00096a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
mysql-test/r/mysqlbinlog.result
mysql-test/r/mysqlbinlog.result
+8
-8
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+11
-0
No files found.
mysql-test/r/mysqlbinlog.result
View file @
1e5fa89d
...
...
@@ -127,16 +127,16 @@ SET TIMESTAMP=1000000000/*!*/;
insert into t2 values ()
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
1-2
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
2-2
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
3-2
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
4-2
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
DELIMITER ;
# End of log file
...
...
@@ -318,18 +318,18 @@ SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.
create table t1 (a varchar(64) character set utf8)
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
6-0
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
7-0
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
8-0
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
9-0
' INTO table t1
load data LOCAL INFILE 'MYSQLTEST_VARDIR/tmp/SQL_LOAD_MB-
#-#
' INTO table t1
/*!*/;
SET TIMESTAMP=1000000000/*!*/;
SET @@session.collation_database=7/*!*/;
...
...
mysql-test/t/mysqlbinlog.test
View file @
1e5fa89d
...
...
@@ -51,6 +51,7 @@ select "--- Local --" as "";
select
"--- Broken LOAD DATA --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000002
2
>
/
dev
/
null
# this should show almost nothing
...
...
@@ -58,6 +59,7 @@ select "--- Broken LOAD DATA --" as "";
select
"--- --database --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
--
database
=
nottest
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000001
2
>
/
dev
/
null
# this test for position option
...
...
@@ -65,6 +67,7 @@ select "--- --database --" as "";
select
"--- --position --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
--
position
=
239
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000002
# These are tests for remote binlog.
...
...
@@ -76,6 +79,7 @@ select "--- Remote --" as "";
# This is broken now
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000001
# This is broken too
...
...
@@ -83,6 +87,7 @@ select "--- Remote --" as "";
select
"--- Broken LOAD DATA --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000002
2
>
/
dev
/
null
# And this too ! (altough it is documented)
...
...
@@ -90,6 +95,7 @@ select "--- Broken LOAD DATA --" as "";
select
"--- --database --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
--
database
=
nottest
master
-
bin
.
000001
2
>
/
dev
/
null
# Strangely but this works
...
...
@@ -97,6 +103,7 @@ select "--- --database --" as "";
select
"--- --position --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
--
read
-
from
-
remote
-
server
--
position
=
239
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000002
# Bug#7853 (mysqlbinlog does not accept input from stdin)
...
...
@@ -104,9 +111,11 @@ select "--- --position --" as "";
select
"--- reading stdin --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
-
<
$MYSQL_TEST_DIR
/
std_data
/
trunc_binlog
.
000001
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
position
=
79
-
<
$MYSQL_TEST_DIR
/
std_data
/
trunc_binlog
.
000001
drop
table
t1
,
t2
;
...
...
@@ -170,6 +179,7 @@ call p1();
drop
procedure
p1
;
--
error
1305
call
p1
();
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
00000
8
--
exec
$MYSQL_BINLOG
--
short
-
form
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
00000
8
|
$MYSQL
call
p1
();
...
...
@@ -205,6 +215,7 @@ select hex(a) from t1;
drop
table
t1
;
flush
logs
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_regex
/
SQL_LOAD_MB
-
[
0
-
9
]
-
[
0
-
9
]
/
SQL_LOAD_MB
-
#-#/
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQLTEST_VARDIR
/
tmp
/
$MYSQLTEST_VARDIR
/
log
/
master
-
bin
.
000010
#
...
...
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