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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d6623f58
Commit
d6623f58
authored
Jun 24, 2007
by
istruewing@chilla.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge chilla.local:/home/mydev/mysql-5.1-ateam
into chilla.local:/home/mydev/mysql-5.1-axmrg
parents
836fe1e3
af1f24cf
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
1 deletion
+67
-1
mysql-test/r/archive-big.result
mysql-test/r/archive-big.result
+19
-0
mysql-test/r/csv.result
mysql-test/r/csv.result
+8
-0
mysql-test/t/archive-big.test
mysql-test/t/archive-big.test
+25
-0
mysql-test/t/csv.test
mysql-test/t/csv.test
+11
-0
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+4
-1
No files found.
mysql-test/r/archive-big.result
0 → 100644
View file @
d6623f58
CREATE TABLE t1(a BLOB) ENGINE=ARCHIVE;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 SELECT * FROM t1;
DROP TABLE t1;
mysql-test/r/csv.result
View file @
d6623f58
...
@@ -5261,3 +5261,11 @@ CREATE TABLE `bug21328` (
...
@@ -5261,3 +5261,11 @@ CREATE TABLE `bug21328` (
insert into bug21328 values (1,NULL,NULL);
insert into bug21328 values (1,NULL,NULL);
alter table bug21328 engine=myisam;
alter table bug21328 engine=myisam;
drop table bug21328;
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;
mysql-test/t/archive-big.test
0 → 100644
View file @
d6623f58
This diff is collapsed.
Click to expand it.
mysql-test/t/csv.test
View file @
d6623f58
...
@@ -1674,3 +1674,14 @@ CREATE TABLE `bug21328` (
...
@@ -1674,3 +1674,14 @@ CREATE TABLE `bug21328` (
insert into bug21328 values (1,NULL,NULL);
insert into bug21328 values (1,NULL,NULL);
alter table bug21328 engine=myisam;
alter table bug21328 engine=myisam;
drop table bug21328;
drop table bug21328;
#
# BUG#28971 - ALTER TABLE followed by UPDATE for a CSV table make server
# crash
#
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;
drop table t1;
storage/csv/ha_tina.cc
View file @
d6623f58
...
@@ -590,6 +590,7 @@ int ha_tina::find_current_row(uchar *buf)
...
@@ -590,6 +590,7 @@ int ha_tina::find_current_row(uchar *buf)
int
eoln_len
;
int
eoln_len
;
my_bitmap_map
*
org_bitmap
;
my_bitmap_map
*
org_bitmap
;
int
error
;
int
error
;
bool
read_all
;
DBUG_ENTER
(
"ha_tina::find_current_row"
);
DBUG_ENTER
(
"ha_tina::find_current_row"
);
/*
/*
...
@@ -601,6 +602,8 @@ int ha_tina::find_current_row(uchar *buf)
...
@@ -601,6 +602,8 @@ int ha_tina::find_current_row(uchar *buf)
local_saved_data_file_length
,
&
eoln_len
))
==
0
)
local_saved_data_file_length
,
&
eoln_len
))
==
0
)
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
DBUG_RETURN
(
HA_ERR_END_OF_FILE
);
/* We must read all columns in case a table is opened for update */
read_all
=
!
bitmap_is_clear_all
(
table
->
write_set
);
/* Avoid asserts in ::store() for columns that are not going to be updated */
/* Avoid asserts in ::store() for columns that are not going to be updated */
org_bitmap
=
dbug_tmp_use_all_columns
(
table
,
table
->
write_set
);
org_bitmap
=
dbug_tmp_use_all_columns
(
table
,
table
->
write_set
);
error
=
HA_ERR_CRASHED_ON_USAGE
;
error
=
HA_ERR_CRASHED_ON_USAGE
;
...
@@ -678,7 +681,7 @@ int ha_tina::find_current_row(uchar *buf)
...
@@ -678,7 +681,7 @@ int ha_tina::find_current_row(uchar *buf)
goto
err
;
goto
err
;
}
}
if
(
bitmap_is_set
(
table
->
read_set
,
(
*
field
)
->
field_index
))
if
(
read_all
||
bitmap_is_set
(
table
->
read_set
,
(
*
field
)
->
field_index
))
(
*
field
)
->
store
(
buffer
.
ptr
(),
buffer
.
length
(),
buffer
.
charset
());
(
*
field
)
->
store
(
buffer
.
ptr
(),
buffer
.
length
(),
buffer
.
charset
());
}
}
next_position
=
end_offset
+
eoln_len
;
next_position
=
end_offset
+
eoln_len
;
...
...
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