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
440caf3e
Commit
440caf3e
authored
Aug 28, 2007
by
msvensson@pilot.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unportable constructs in loaddata.test
parent
4a013e29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
85 deletions
+10
-85
mysql-test/r/bdb_notembedded.result
mysql-test/r/bdb_notembedded.result
+0
-35
mysql-test/t/bdb_notembedded.test
mysql-test/t/bdb_notembedded.test
+0
-38
mysql-test/t/loaddata.test
mysql-test/t/loaddata.test
+10
-12
No files found.
mysql-test/r/bdb_notembedded.result
deleted
100644 → 0
View file @
4a013e29
set autocommit=1;
reset master;
create table bug16206 (a int);
insert into bug16206 values(1);
start transaction;
insert into bug16206 values(2);
commit;
show binlog events;
Log_name Pos Event_type Server_id End_log_pos Info
f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
f n Query 1 n use `test`; create table bug16206 (a int)
f n Query 1 n use `test`; insert into bug16206 values(1)
f n Query 1 n use `test`; insert into bug16206 values(2)
drop table bug16206;
reset master;
create table bug16206 (a int) engine= bdb;
insert into bug16206 values(0);
insert into bug16206 values(1);
start transaction;
insert into bug16206 values(2);
commit;
insert into bug16206 values(3);
show binlog events;
Log_name Pos Event_type Server_id End_log_pos Info
f n Format_desc 1 n Server ver: VERSION, Binlog ver: 4
f n Query 1 n use `test`; create table bug16206 (a int) engine= bdb
f n Query 1 n use `test`; insert into bug16206 values(0)
f n Query 1 n use `test`; insert into bug16206 values(1)
f n Query 1 n use `test`; BEGIN
f n Query 1 n use `test`; insert into bug16206 values(2)
f n Query 1 n use `test`; COMMIT
f n Query 1 n use `test`; insert into bug16206 values(3)
drop table bug16206;
set autocommit=0;
End of 5.0 tests
mysql-test/t/bdb_notembedded.test
deleted
100644 → 0
View file @
4a013e29
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_bdb
.
inc
#
# Bug #16206: Superfluous COMMIT event in binlog when updating BDB in autocommit mode
#
set
autocommit
=
1
;
let
$VERSION
=
`select version()`
;
reset
master
;
create
table
bug16206
(
a
int
);
insert
into
bug16206
values
(
1
);
start
transaction
;
insert
into
bug16206
values
(
2
);
commit
;
--
replace_result
$VERSION
VERSION
--
replace_column
1
f
2
n
5
n
show
binlog
events
;
drop
table
bug16206
;
reset
master
;
create
table
bug16206
(
a
int
)
engine
=
bdb
;
insert
into
bug16206
values
(
0
);
insert
into
bug16206
values
(
1
);
start
transaction
;
insert
into
bug16206
values
(
2
);
commit
;
insert
into
bug16206
values
(
3
);
--
replace_result
$VERSION
VERSION
--
replace_column
1
f
2
n
5
n
show
binlog
events
;
drop
table
bug16206
;
set
autocommit
=
0
;
--
echo
End
of
5.0
tests
mysql-test/t/loaddata.test
View file @
440caf3e
...
@@ -43,7 +43,7 @@ delete from t1;
...
@@ -43,7 +43,7 @@ delete from t1;
eval
load
data
infile
'$MYSQLTEST_VARDIR/tmp/t1'
into
table
t1
;
eval
load
data
infile
'$MYSQLTEST_VARDIR/tmp/t1'
into
table
t1
;
enable_query_log
;
enable_query_log
;
select
*
from
t1
;
select
*
from
t1
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
disable_query_log
;
disable_query_log
;
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t1'
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t1'
...
@@ -54,7 +54,7 @@ eval load data infile '$MYSQLTEST_VARDIR/tmp/t1' into table t1
...
@@ -54,7 +54,7 @@ eval load data infile '$MYSQLTEST_VARDIR/tmp/t1' into table t1
FIELDS
TERMINATED
BY
''
OPTIONALLY
ENCLOSED
BY
''
LINES
TERMINATED
BY
'\r\n'
;
FIELDS
TERMINATED
BY
''
OPTIONALLY
ENCLOSED
BY
''
LINES
TERMINATED
BY
'\r\n'
;
enable_query_log
;
enable_query_log
;
select
*
from
t1
;
select
*
from
t1
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
SET
@@
SQL_MODE
=@
OLD_SQL_MODE
;
SET
@@
SQL_MODE
=@
OLD_SQL_MODE
;
drop
table
t1
;
drop
table
t1
;
...
@@ -89,17 +89,16 @@ INSERT INTO t1 (c1) VALUES
...
@@ -89,17 +89,16 @@ INSERT INTO t1 (c1) VALUES
(
'.r.'
),
(
'.rr.'
),
(
'.rrr.'
),
(
'.rrrr.'
);
(
'.r.'
),
(
'.rr.'
),
(
'.rrr.'
),
(
'.rrrr.'
);
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
--
exec
rm
-
f
$MYSQLTEST_VARDIR
/
tmp
/
t1
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t1'
FIELDS
ENCLOSED
BY
'r'
FROM
t1
;
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t1'
FIELDS
ENCLOSED
BY
'r'
FROM
t1
;
--
exec
cat
$MYSQLTEST_VARDIR
/
tmp
/
t1
cat_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
LOAD
DATA
INFILE
'$MYSQLTEST_VARDIR/tmp/t1'
INTO
TABLE
t2
FIELDS
ENCLOSED
BY
'r'
;
eval
LOAD
DATA
INFILE
'$MYSQLTEST_VARDIR/tmp/t1'
INTO
TABLE
t2
FIELDS
ENCLOSED
BY
'r'
;
SELECT
t1
.
id
,
c1
,
c2
FROM
t1
LEFT
JOIN
t2
ON
t1
.
id
=
t2
.
id
WHERE
c1
!=
c2
;
SELECT
t1
.
id
,
c1
,
c2
FROM
t1
LEFT
JOIN
t2
ON
t1
.
id
=
t2
.
id
WHERE
c1
!=
c2
;
SELECT
t1
.
id
,
c1
,
c2
FROM
t1
RIGHT
JOIN
t2
ON
t1
.
id
=
t2
.
id
WHERE
c1
!=
c2
;
SELECT
t1
.
id
,
c1
,
c2
FROM
t1
RIGHT
JOIN
t2
ON
t1
.
id
=
t2
.
id
WHERE
c1
!=
c2
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
# End of 4.1 tests
# End of 4.1 tests
...
@@ -184,7 +183,7 @@ SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
...
@@ -184,7 +183,7 @@ SET @OLD_SQL_MODE=@@SQL_MODE, @@SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
eval
load
data
infile
'$MYSQLTEST_VARDIR/tmp/t1'
into
table
t2
;
eval
load
data
infile
'$MYSQLTEST_VARDIR/tmp/t1'
into
table
t2
;
enable_query_log
;
enable_query_log
;
select
*
from
t2
;
select
*
from
t2
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
SET
@@
SQL_MODE
=@
OLD_SQL_MODE
;
SET
@@
SQL_MODE
=@
OLD_SQL_MODE
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
...
@@ -200,7 +199,7 @@ eval select * into outfile '$MYSQLTEST_VARDIR/tmp/t2' from t2;
...
@@ -200,7 +199,7 @@ eval select * into outfile '$MYSQLTEST_VARDIR/tmp/t2' from t2;
eval
load
data
infile
'$MYSQLTEST_VARDIR/tmp/t2'
into
table
t1
;
eval
load
data
infile
'$MYSQLTEST_VARDIR/tmp/t2'
into
table
t1
;
enable_query_log
;
enable_query_log
;
select
f1
from
t1
where
f2
<>
'0000-00-00 00:00:00'
order
by
f1
;
select
f1
from
t1
where
f2
<>
'0000-00-00 00:00:00'
order
by
f1
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t2
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t2
;
delete
from
t1
;
delete
from
t1
;
disable_query_log
;
disable_query_log
;
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t2'
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t2'
...
@@ -210,7 +209,7 @@ eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1
...
@@ -210,7 +209,7 @@ eval load data infile '$MYSQLTEST_VARDIR/tmp/t2' into table t1
FIELDS
TERMINATED
BY
''
OPTIONALLY
ENCLOSED
BY
''
LINES
TERMINATED
BY
'\r\n'
;
FIELDS
TERMINATED
BY
''
OPTIONALLY
ENCLOSED
BY
''
LINES
TERMINATED
BY
'\r\n'
;
enable_query_log
;
enable_query_log
;
select
f1
from
t1
where
f2
<>
'0000-00-00 00:00:00'
order
by
f1
;
select
f1
from
t1
where
f2
<>
'0000-00-00 00:00:00'
order
by
f1
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t2
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t2
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
#
...
@@ -223,11 +222,10 @@ CREATE TABLE t1 (c1 INT, c2 TIMESTAMP, c3 REAL, c4 DOUBLE);
...
@@ -223,11 +222,10 @@ CREATE TABLE t1 (c1 INT, c2 TIMESTAMP, c3 REAL, c4 DOUBLE);
INSERT
INTO
t1
(
c1
,
c2
,
c3
,
c4
)
VALUES
(
10
,
'1970-02-01 01:02:03'
,
1.1E-100
,
1.1E+100
);
INSERT
INTO
t1
(
c1
,
c2
,
c3
,
c4
)
VALUES
(
10
,
'1970-02-01 01:02:03'
,
1.1E-100
,
1.1E+100
);
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
--
exec
rm
-
f
$MYSQLTEST_VARDIR
/
tmp
/
t1
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t1'
FIELDS
ENCLOSED
BY
'-'
FROM
t1
;
eval
SELECT
*
INTO
OUTFILE
'$MYSQLTEST_VARDIR/tmp/t1'
FIELDS
ENCLOSED
BY
'-'
FROM
t1
;
--
exec
cat
$MYSQLTEST_VARDIR
/
tmp
/
t1
cat_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
--
exec
echo
EOF
echo
EOF
;
TRUNCATE
t1
;
TRUNCATE
t1
;
...
@@ -235,7 +233,7 @@ TRUNCATE t1;
...
@@ -235,7 +233,7 @@ TRUNCATE t1;
eval
LOAD
DATA
INFILE
'$MYSQLTEST_VARDIR/tmp/t1'
INTO
TABLE
t1
FIELDS
ENCLOSED
BY
'-'
;
eval
LOAD
DATA
INFILE
'$MYSQLTEST_VARDIR/tmp/t1'
INTO
TABLE
t1
FIELDS
ENCLOSED
BY
'-'
;
SELECT
*
FROM
t1
;
SELECT
*
FROM
t1
;
--
exec
rm
$MYSQLTEST_VARDIR
/
tmp
/
t1
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
# End of 5.0 tests
# End of 5.0 tests
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