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
d00d9110
Commit
d00d9110
authored
Oct 08, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test case that my last patch to mysqlbinlog broke.
Changed --remote to --read-from-remote-server (mysqlbinlog)
parent
02ad66f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+1
-1
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+4
-4
No files found.
client/mysqlbinlog.cc
View file @
d00d9110
...
@@ -236,7 +236,7 @@ static struct my_option my_long_options[] =
...
@@ -236,7 +236,7 @@ static struct my_option my_long_options[] =
0
,
0
},
0
,
0
},
{
"result-file"
,
'r'
,
"Direct output to a given file."
,
0
,
0
,
0
,
GET_STR
,
{
"result-file"
,
'r'
,
"Direct output to a given file."
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"re
mote"
,
'R'
,
"Connect to remote
MySQL server"
,
{
"re
ad-from-remote-server"
,
'R'
,
"Read binary logs from a
MySQL server"
,
(
gptr
*
)
&
remote_opt
,
(
gptr
*
)
&
remote_opt
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
(
gptr
*
)
&
remote_opt
,
(
gptr
*
)
&
remote_opt
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
},
{
"short-form"
,
's'
,
"Just show the queries, no extra info."
,
{
"short-form"
,
's'
,
"Just show the queries, no extra info."
,
...
...
mysql-test/t/mysqlbinlog.test
View file @
d00d9110
...
@@ -76,28 +76,28 @@ select "--- Remote --" as "";
...
@@ -76,28 +76,28 @@ select "--- Remote --" as "";
# This is broken now
# This is broken now
# By the way it seems that remote version fetches all events with name >= master-bin.001
# By the way it seems that remote version fetches all events with name >= master-bin.001
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
001
--
exec
$MYSQL_BINLOG
--
short
-
form
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
001
# This is broken too
# This is broken too
--
disable_query_log
--
disable_query_log
select
"--- Broken LOAD DATA --"
as
""
;
select
"--- Broken LOAD DATA --"
as
""
;
--
enable_query_log
--
enable_query_log
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
002
--
exec
$MYSQL_BINLOG
--
short
-
form
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
002
# And this too ! (altough it is documented)
# And this too ! (altough it is documented)
--
disable_query_log
--
disable_query_log
select
"--- --database --"
as
""
;
select
"--- --database --"
as
""
;
--
enable_query_log
--
enable_query_log
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
--
database
=
nottest
master
-
bin
.
001
--
exec
$MYSQL_BINLOG
--
short
-
form
--
read
-
from
-
remote
-
server
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
--
database
=
nottest
master
-
bin
.
001
# Strangely but this works
# Strangely but this works
--
disable_query_log
--
disable_query_log
select
"--- --position --"
as
""
;
select
"--- --position --"
as
""
;
--
enable_query_log
--
enable_query_log
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
--
position
=
27
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
002
--
exec
$MYSQL_BINLOG
--
short
-
form
--
read
-
from
-
remote
-
server
--
position
=
27
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
002
# clean up
# clean up
drop
table
t1
;
drop
table
t1
;
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