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
038b3007
Commit
038b3007
authored
Nov 06, 2005
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug#14672 Bug in deletion
parent
a1f56ea5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
1 deletion
+48
-1
mysql-test/r/csv.result
mysql-test/r/csv.result
+27
-0
mysql-test/t/csv.test
mysql-test/t/csv.test
+19
-0
sql/examples/ha_tina.cc
sql/examples/ha_tina.cc
+2
-1
No files found.
mysql-test/r/csv.result
View file @
038b3007
...
...
@@ -4949,3 +4949,30 @@ val
6
6
DROP TABLE bug13894;
DROP TABLE IF EXISTS bug14672;
CREATE TABLE bug14672 (c1 integer) engine = CSV;
INSERT INTO bug14672 VALUES (1), (2), (3);
SELECT * FROM bug14672;
c1
1
2
3
DELETE FROM bug14672 WHERE c1 = 2;
SELECT * FROM bug14672;
c1
1
3
INSERT INTO bug14672 VALUES (4);
SELECT * FROM bug14672;
c1
1
3
4
INSERT INTO bug14672 VALUES (5);
SELECT * FROM bug14672;
c1
1
3
4
5
DROP TABLE bug14672;
mysql-test/t/csv.test
View file @
038b3007
...
...
@@ -1332,4 +1332,23 @@ UPDATE bug13894 SET val=6 WHERE val=10;
SELECT
*
FROM
bug13894
;
DROP
TABLE
bug13894
;
#
# Bug #14672 Bug in deletion
#
--
disable_warnings
DROP
TABLE
IF
EXISTS
bug14672
;
--
enable_warnings
CREATE
TABLE
bug14672
(
c1
integer
)
engine
=
CSV
;
INSERT
INTO
bug14672
VALUES
(
1
),
(
2
),
(
3
);
SELECT
*
FROM
bug14672
;
DELETE
FROM
bug14672
WHERE
c1
=
2
;
SELECT
*
FROM
bug14672
;
INSERT
INTO
bug14672
VALUES
(
4
);
SELECT
*
FROM
bug14672
;
INSERT
INTO
bug14672
VALUES
(
5
);
SELECT
*
FROM
bug14672
;
DROP
TABLE
bug14672
;
# End of 4.1 tests
sql/examples/ha_tina.cc
View file @
038b3007
...
...
@@ -166,7 +166,8 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table)
thr_lock_init
(
&
share
->
lock
);
pthread_mutex_init
(
&
share
->
mutex
,
MY_MUTEX_INIT_FAST
);
if
((
share
->
data_file
=
my_open
(
data_file_name
,
O_RDWR
,
MYF
(
0
)))
==
-
1
)
if
((
share
->
data_file
=
my_open
(
data_file_name
,
O_RDWR
|
O_APPEND
,
MYF
(
0
)))
==
-
1
)
goto
error2
;
/* We only use share->data_file for writing, so we scan to the end to append */
...
...
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