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
0fc3171f
Commit
0fc3171f
authored
Feb 11, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/jonas/src/mysql-5.0
parents
bc8bf4a3
b43a8e84
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+3
-5
mysql-test/r/mysqlbinlog.result
mysql-test/r/mysqlbinlog.result
+10
-0
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+10
-0
No files found.
client/mysqlbinlog.cc
View file @
0fc3171f
...
...
@@ -1130,15 +1130,15 @@ static int dump_local_log_entries(const char* logname)
}
check_header
(
file
,
&
description_event
);
}
else
// reading from stdin;
TODO: check that it works
else
// reading from stdin;
{
if
(
init_io_cache
(
file
,
fileno
(
result_file
),
0
,
READ_CACHE
,
(
my_off_t
)
0
,
if
(
init_io_cache
(
file
,
fileno
(
stdin
),
0
,
READ_CACHE
,
(
my_off_t
)
0
,
0
,
MYF
(
MY_WME
|
MY_NABP
|
MY_DONT_CHECK_FILESIZE
)))
return
1
;
check_header
(
file
,
&
description_event
);
if
(
start_position
)
{
/* skip 'start_position' characters from std
out
*/
/* skip 'start_position' characters from std
in
*/
byte
buff
[
IO_SIZE
];
my_off_t
length
,
tmp
;
for
(
length
=
start_position_mot
;
length
>
0
;
length
-=
tmp
)
...
...
@@ -1151,8 +1151,6 @@ static int dump_local_log_entries(const char* logname)
}
}
}
file
->
pos_in_file
=
start_position_mot
;
file
->
seek_not_done
=
0
;
}
if
(
!
description_event
||
!
description_event
->
is_valid
())
...
...
mysql-test/r/mysqlbinlog.result
View file @
0fc3171f
...
...
@@ -102,4 +102,14 @@ SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.uniq
SET @@session.sql_mode=0;
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8;
insert into t1 values ("Alas");
--- reading stdin --
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
use test;
SET TIMESTAMP=1065204671;
BEGIN;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
use test;
SET TIMESTAMP=1065204671;
BEGIN;
drop table t1, t2;
mysql-test/t/mysqlbinlog.test
View file @
0fc3171f
...
...
@@ -95,5 +95,15 @@ select "--- --position --" as "";
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
$MYSQL_BINLOG
--
short
-
form
--
local
-
load
=
$MYSQL_TEST_DIR
/
var
/
tmp
/
--
read
-
from
-
remote
-
server
--
position
=
118
--
user
=
root
--
host
=
127.0
.
0.1
--
port
=
$MASTER_MYPORT
master
-
bin
.
000002
# Bug#7853 (mysqlbinlog does not accept input from stdin)
--
disable_query_log
select
"--- reading stdin --"
as
""
;
--
enable_query_log
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
cat
$MYSQL_TEST_DIR
/
std_data
/
trunc_binlog
.
000001
|
$MYSQL_BINLOG
--
short
-
form
-
--
replace_result
$MYSQL_TEST_DIR
MYSQL_TEST_DIR
--
exec
cat
$MYSQL_TEST_DIR
/
std_data
/
trunc_binlog
.
000001
|
$MYSQL_BINLOG
--
short
-
form
--
position
=
79
-
# clean up
drop
table
t1
,
t2
;
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