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
b5aa55e1
Commit
b5aa55e1
authored
Jul 11, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addendum to bug 29325:
test if TRUNCATE TABLE works with keep_files_on_create
parent
1e4d6904
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
mysql-test/r/create.result
mysql-test/r/create.result
+6
-1
mysql-test/t/create.test
mysql-test/t/create.test
+7
-1
No files found.
mysql-test/r/create.result
View file @
b5aa55e1
...
...
@@ -1515,8 +1515,13 @@ USE db1;
SET SESSION keep_files_on_create = TRUE;
CREATE TABLE t1 (a INT) ENGINE MYISAM;
ERROR HY000: Can't create/write to file './db1/t1.MYD' (Errcode: 17)
CREATE TABLE t3 (a INT) Engine=MyISAM;
INSERT INTO t3 VALUES (1),(2),(3);
TRUNCATE TABLE t3;
SELECT * from t3;
a
SET SESSION keep_files_on_create = DEFAULT;
DROP TABLE db2.t1;
DROP TABLE db2.t1
, db1.t3
;
DROP DATABASE db1;
DROP DATABASE db2;
USE test;
...
...
mysql-test/t/create.test
View file @
b5aa55e1
...
...
@@ -1142,9 +1142,15 @@ SET SESSION keep_files_on_create = TRUE;
--
disable_abort_on_error
CREATE
TABLE
t1
(
a
INT
)
ENGINE
MYISAM
;
--
enable_abort_on_error
CREATE
TABLE
t3
(
a
INT
)
Engine
=
MyISAM
;
INSERT
INTO
t3
VALUES
(
1
),(
2
),(
3
);
TRUNCATE
TABLE
t3
;
SELECT
*
from
t3
;
SET
SESSION
keep_files_on_create
=
DEFAULT
;
DROP
TABLE
db2
.
t1
;
DROP
TABLE
db2
.
t1
,
db1
.
t3
;
DROP
DATABASE
db1
;
DROP
DATABASE
db2
;
USE
test
;
...
...
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