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
5fae48d9
Commit
5fae48d9
authored
Aug 23, 2006
by
petr/cps@owlet.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
into mysql.com:/home/cps/mysql/trees/mysql-5.1-virgin
parents
2763504b
30ef47a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
mysql-test/r/csv.result
mysql-test/r/csv.result
+10
-0
mysql-test/t/csv.test
mysql-test/t/csv.test
+24
-0
No files found.
mysql-test/r/csv.result
View file @
5fae48d9
...
@@ -5195,3 +5195,13 @@ select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn');
...
@@ -5195,3 +5195,13 @@ select * from t1 where i between 2 and 4 and v in ('def','3r4f','lmn');
i v
i v
4 3r4f
4 3r4f
drop table t1;
drop table t1;
create table bug15205 (val int(11) default null) engine=csv;
create table bug15205_2 (val int(11) default null) engine=csv;
select * from bug15205;
ERROR HY000: Can't get stat of './test/bug15205.CSV' (Errcode: 2)
select * from bug15205_2;
val
select * from bug15205;
val
drop table bug15205;
drop table bug15205_2;
mysql-test/t/csv.test
View file @
5fae48d9
...
@@ -1558,3 +1558,27 @@ select * from t1;
...
@@ -1558,3 +1558,27 @@ select * from t1;
alter
table
t1
add
unique
key
(
i
,
v
);
alter
table
t1
add
unique
key
(
i
,
v
);
select
*
from
t1
where
i
between
2
and
4
and
v
in
(
'def'
,
'3r4f'
,
'lmn'
);
select
*
from
t1
where
i
between
2
and
4
and
v
in
(
'def'
,
'3r4f'
,
'lmn'
);
drop
table
t1
;
drop
table
t1
;
#
# Bug #15205 Select from CSV table without the datafile causes crash
#
# NOTE: the bug is not deterministic
# The crash happens because the necessary cleanup after an error wasn't
# performed. Namely, the table share, inserted in the hash during table
# open, was not deleted from hash. At the same time the share was freed
# when an error was encountered. Thus, subsequent access to the hash
# resulted in scanning through deleted memory and we were geting a crash.
# that's why we need two tables in the bugtest
create
table
bug15205
(
val
int
(
11
)
default
null
)
engine
=
csv
;
create
table
bug15205_2
(
val
int
(
11
)
default
null
)
engine
=
csv
;
--
exec
rm
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
# system error (can't open the datafile)
--
error
ER_GET_ERRNO
select
*
from
bug15205
;
select
*
from
bug15205_2
;
--
exec
touch
$MYSQLTEST_VARDIR
/
master
-
data
/
test
/
bug15205
.
CSV
select
*
from
bug15205
;
drop
table
bug15205
;
drop
table
bug15205_2
;
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