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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6697e6af
Commit
6697e6af
authored
Feb 06, 2006
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Two new tests for replace_regex
parent
7a9265cf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/binlog_stm_binlog.result
mysql-test/r/binlog_stm_binlog.result
+12
-0
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+8
-0
mysql-test/t/binlog_stm_binlog.test
mysql-test/t/binlog_stm_binlog.test
+12
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+10
-0
No files found.
mysql-test/r/binlog_stm_binlog.result
View file @
6697e6af
create table t1 (a int, b int) engine=innodb;
begin;
insert into t1 values (1,2);
commit;
show binlog events;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 102 Server ver: 5.1.7-beta-debug-log, Binlog ver: 4
master-bin.000001 102 Query 1 209 use `test`; create table t1 (a int, b int) engine=innodb
master-bin.000001 209 Query 1 277 use `test`; BEGIN
master-bin.000001 277 Query 1 90 use `test`; insert into t1 values (1,2)
master-bin.000001 367 Xid 1 394 COMMIT /* XID */
drop table t1;
drop table if exists t1, t2;
drop table if exists t1, t2;
reset master;
reset master;
create table t1 (a int) engine=bdb;
create table t1 (a int) engine=bdb;
...
...
mysql-test/r/mysqltest.result
View file @
6697e6af
...
@@ -439,3 +439,11 @@ mysqltest: At line 1: Error parsing replace_regex "a "
...
@@ -439,3 +439,11 @@ mysqltest: At line 1: Error parsing replace_regex "a "
mysqltest: At line 1: Error parsing replace_regex "a b"
mysqltest: At line 1: Error parsing replace_regex "a b"
mysqltest: At line 1: Error parsing replace_regex "/a b c"
mysqltest: At line 1: Error parsing replace_regex "/a b c"
mysqltest: At line 1: Error parsing replace_regex "/a /b c "
mysqltest: At line 1: Error parsing replace_regex "/a /b c "
create table t1 (a int, b int);
insert into t1 values (1,3);
insert into t1 values (2,4);
select * from t1;
a D
1 1
1 4
drop table t1;
mysql-test/t/binlog_stm_binlog.test
View file @
6697e6af
# REQUIREMENT
# replace_regex should replace output of SHOW BINLOG EVENTS
create
table
t1
(
a
int
,
b
int
)
engine
=
innodb
;
begin
;
insert
into
t1
values
(
1
,
2
);
commit
;
--
replace_regex
/
\
/
\
*
xid
=.*
\
*
\
//\/* XID *\//
show
binlog
events
;
drop
table
t1
;
# This is a wrapper for binlog.test so that the same test case can be used
# This is a wrapper for binlog.test so that the same test case can be used
# For both statement and row based bin logs 9/19/2005 [jbm]
# For both statement and row based bin logs 9/19/2005 [jbm]
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_binlog_format_statement
.
inc
--
source
include
/
have_binlog_format_statement
.
inc
--
source
extra
/
binlog_tests
/
binlog
.
test
--
source
extra
/
binlog_tests
/
binlog
.
test
mysql-test/t/mysqltest.test
View file @
6697e6af
...
@@ -1094,3 +1094,13 @@ select "strawberry","blueberry","potato";
...
@@ -1094,3 +1094,13 @@ select "strawberry","blueberry","potato";
--
exec
echo
"--replace_regex /a b c"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"--replace_regex /a b c"
|
$MYSQL_TEST
2
>&
1
--
error
1
--
error
1
--
exec
echo
"replace_regex /a /b c ;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"replace_regex /a /b c ;"
|
$MYSQL_TEST
2
>&
1
# REQUIREMENT
# replace_regex should replace substitutions from left to right in output
create
table
t1
(
a
int
,
b
int
);
insert
into
t1
values
(
1
,
3
);
insert
into
t1
values
(
2
,
4
);
--
replace_regex
/
A
/
C
/
/
B
/
D
/
i
/
3
/
2
/
/
2
/
1
/
select
*
from
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