diff options
author | svoj@mysql.com/april.(none) <> | 2007-06-15 03:22:40 +0500 |
---|---|---|
committer | svoj@mysql.com/april.(none) <> | 2007-06-15 03:22:40 +0500 |
commit | 8f5b6ec237fdd152f651a3c5537763d2d0f8ef32 (patch) | |
tree | cf09647d5458efd71af8189e95f611cc4c35adff /mysql-test/r/csv.result | |
parent | d122a8caf7c5059bec6ef6ad4c288e74be6c02a7 (diff) | |
download | mariadb-git-8f5b6ec237fdd152f651a3c5537763d2d0f8ef32.tar.gz |
BUG#28971 - ALTER TABLE followed by UPDATE for a CSV table
make server crash
UPDATE against CSV table may cause server crash or update a table with wrong
values.
CSV can write only a whole row at once. That means it must read all columns,
that it is not going to update, and write them along with updated columns.
But only limited set of columns was read, those that were needed for the
UPDATE query.
With this fix all columns are read in case we're performing an UPDATE.
Diffstat (limited to 'mysql-test/r/csv.result')
-rw-r--r-- | mysql-test/r/csv.result | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/csv.result b/mysql-test/r/csv.result index ede5d9a32fd..1196a264fd3 100644 --- a/mysql-test/r/csv.result +++ b/mysql-test/r/csv.result @@ -5240,3 +5240,11 @@ CREATE TABLE `bug21328` ( insert into bug21328 values (1,NULL,NULL); alter table bug21328 engine=myisam; drop table bug21328; +create table t1(a blob, b int) engine=csv; +insert into t1 values('a', 1); +flush tables; +update t1 set b=2; +select * from t1; +a b +a 2 +drop table t1; |