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
eb1c2801
Commit
eb1c2801
authored
Dec 11, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wait for INSERT DELAYED to finish i.e sleep in while loop until
"select count" is one more.
parent
98e062a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
mysql-test/r/archive.result
mysql-test/r/archive.result
+6
-0
mysql-test/t/archive.test
mysql-test/t/archive.test
+7
-3
No files found.
mysql-test/r/archive.result
View file @
eb1c2801
...
@@ -11120,7 +11120,13 @@ auto fld1 companynr fld3 fld4 fld5 fld6
...
@@ -11120,7 +11120,13 @@ auto fld1 companynr fld3 fld4 fld5 fld6
2 011401 37 breaking dreaded Steinberg W
2 011401 37 breaking dreaded Steinberg W
3 011402 37 Romans scholastics jarring
3 011402 37 Romans scholastics jarring
4 011403 37 intercepted audiology tinily
4 011403 37 intercepted audiology tinily
SELECT COUNT(auto) FROM t2;
COUNT(auto)
1213
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
SELECT COUNT(auto) FROM t2;
COUNT(auto)
1214
ALTER TABLE t2 DROP COLUMN fld6;
ALTER TABLE t2 DROP COLUMN fld6;
SHOW CREATE TABLE t2;
SHOW CREATE TABLE t2;
Table Create Table
Table Create Table
...
...
mysql-test/t/archive.test
View file @
eb1c2801
...
@@ -1345,10 +1345,14 @@ SELECT * FROM t2;
...
@@ -1345,10 +1345,14 @@ SELECT * FROM t2;
CHECK
TABLE
t2
;
CHECK
TABLE
t2
;
SELECT
*
FROM
t2
;
SELECT
*
FROM
t2
;
# Test INSERT DELAYED and wait until the table has one more record
# Just test syntax, we will never know if the output is right or wrong
SELECT
COUNT
(
auto
)
FROM
t2
;
# Must be the last test
INSERT
DELAYED
INTO
t2
VALUES
(
4
,
011403
,
37
,
'intercepted'
,
'audiology'
,
'tinily'
,
''
);
INSERT
DELAYED
INTO
t2
VALUES
(
4
,
011403
,
37
,
'intercepted'
,
'audiology'
,
'tinily'
,
''
);
while
(
`SELECT COUNT(auto)!=1214 FROM t2`
)
{
sleep
0.1
;
}
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
;
...
...
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