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
417e1059
Commit
417e1059
authored
Sep 22, 2007
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge shellback.(none):/home/msvensson/mysql/mysql-5.0-maint
into shellback.(none):/home/msvensson/mysql/my51-bug30843
parents
6f086e56
d8fd59a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
mysql-test/r/archive.result
mysql-test/r/archive.result
+4
-5
mysql-test/t/archive.test
mysql-test/t/archive.test
+3
-3
No files found.
mysql-test/r/archive.result
View file @
417e1059
...
@@ -11124,8 +11124,8 @@ auto fld1 companynr fld3 fld4 fld5 fld6
...
@@ -11124,8 +11124,8 @@ auto fld1 companynr fld3 fld4 fld5 fld6
SELECT COUNT(auto) FROM t2;
SELECT COUNT(auto) FROM t2;
COUNT(auto)
COUNT(auto)
1213
1213
INSERT DELAYED INTO t2 VALUES (
4,011403,37,'intercepted','audiology','tinily
','');
INSERT DELAYED INTO t2 VALUES (
99999,011403,37,'the','delayed','insert
','');
INSERT INTO t2 VALUES (
5
,000001,00,'after','delayed','insert','');
INSERT INTO t2 VALUES (
100000
,000001,00,'after','delayed','insert','');
SELECT COUNT(auto) FROM t2;
SELECT COUNT(auto) FROM t2;
COUNT(auto)
COUNT(auto)
1215
1215
...
@@ -11140,7 +11140,7 @@ t2 CREATE TABLE `t2` (
...
@@ -11140,7 +11140,7 @@ t2 CREATE TABLE `t2` (
`fld4` char(35) NOT NULL DEFAULT '',
`fld4` char(35) NOT NULL DEFAULT '',
`fld5` char(35) NOT NULL DEFAULT ''
`fld5` char(35) NOT NULL DEFAULT ''
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1
SELECT * FROM t2;
SELECT * FROM t2
WHERE auto != 100000
;
auto fld1 companynr fld3 fld4 fld5
auto fld1 companynr fld3 fld4 fld5
1 000001 00 Omaha teethe neat
1 000001 00 Omaha teethe neat
2 011401 37 breaking dreaded Steinberg
2 011401 37 breaking dreaded Steinberg
...
@@ -12355,8 +12355,7 @@ auto fld1 companynr fld3 fld4 fld5
...
@@ -12355,8 +12355,7 @@ auto fld1 companynr fld3 fld4 fld5
2 011401 37 breaking dreaded Steinberg
2 011401 37 breaking dreaded Steinberg
3 011402 37 Romans scholastics jarring
3 011402 37 Romans scholastics jarring
4 011403 37 intercepted audiology tinily
4 011403 37 intercepted audiology tinily
4 011403 37 intercepted audiology tinily
99999 011403 37 the delayed insert
5 000001 00 after delayed insert
CREATE TABLE `t5` (
CREATE TABLE `t5` (
`a` int(11) NOT NULL auto_increment,
`a` int(11) NOT NULL auto_increment,
b char(12),
b char(12),
...
...
mysql-test/t/archive.test
View file @
417e1059
...
@@ -1351,13 +1351,13 @@ SELECT * FROM t2;
...
@@ -1351,13 +1351,13 @@ SELECT * FROM t2;
# Test INSERT DELAYED and wait until the table has one more record
# Test INSERT DELAYED and wait until the table has one more record
SELECT
COUNT
(
auto
)
FROM
t2
;
SELECT
COUNT
(
auto
)
FROM
t2
;
INSERT
DELAYED
INTO
t2
VALUES
(
4
,
011403
,
37
,
'intercepted'
,
'audiology'
,
'tinily
'
,
''
);
INSERT
DELAYED
INTO
t2
VALUES
(
99999
,
011403
,
37
,
'the'
,
'delayed'
,
'insert
'
,
''
);
# Insert another record since in Archive delayed values are only
# Insert another record since in Archive delayed values are only
# guaranteed to materialize based on either:
# guaranteed to materialize based on either:
# 1) A new row showing up from a normal insert
# 1) A new row showing up from a normal insert
# 2) A flush table has occurred.
# 2) A flush table has occurred.
INSERT
INTO
t2
VALUES
(
5
,
000001
,
00
,
'after'
,
'delayed'
,
'insert'
,
''
);
INSERT
INTO
t2
VALUES
(
100000
,
000001
,
00
,
'after'
,
'delayed'
,
'insert'
,
''
);
# Wait for the delayed insert to appear
# Wait for the delayed insert to appear
while
(
`SELECT COUNT(auto)!=1215 FROM t2`
)
while
(
`SELECT COUNT(auto)!=1215 FROM t2`
)
...
@@ -1369,7 +1369,7 @@ SELECT COUNT(auto) FROM t2;
...
@@ -1369,7 +1369,7 @@ SELECT COUNT(auto) FROM t2;
# Adding test for ALTER TABLE
# Adding test for ALTER TABLE
ALTER
TABLE
t2
DROP
COLUMN
fld6
;
ALTER
TABLE
t2
DROP
COLUMN
fld6
;
SHOW
CREATE
TABLE
t2
;
SHOW
CREATE
TABLE
t2
;
SELECT
*
FROM
t2
;
SELECT
*
FROM
t2
WHERE
auto
!=
100000
;
# Adding tests for autoincrement
# Adding tests for autoincrement
...
...
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