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
f9fc31f9
Commit
f9fc31f9
authored
Oct 25, 2007
by
antony@pcg5ppc.xiphis.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
protect bug31473 from regressing into 5.0
parent
9f1d9bef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
mysql-test/r/csv.result
mysql-test/r/csv.result
+42
-0
mysql-test/t/csv.test
mysql-test/t/csv.test
+33
-0
No files found.
mysql-test/r/csv.result
View file @
f9fc31f9
...
@@ -5029,4 +5029,46 @@ F7
...
@@ -5029,4 +5029,46 @@ F7
FE LATIN SMALL LETTER THORN
FE LATIN SMALL LETTER THORN
FF LATIN SMALL LETTER Y WITH DIAERESIS
FF LATIN SMALL LETTER Y WITH DIAERESIS
drop table t1;
drop table t1;
create table t1(a datetime) engine=csv;
insert into t1 values();
select * from t1;
a
0000-00-00 00:00:00
drop table t1;
create table t1(a set('foo','bar')) engine=csv;
insert into t1 values();
select * from t1;
a
drop table t1;
create table t1(a varchar(32)) engine=csv;
insert into t1 values();
select * from t1;
a
drop table t1;
create table t1(a int) engine=csv;
insert into t1 values();
select * from t1;
a
0
drop table t1;
create table t1(a blob) engine=csv;
insert into t1 values();
select * from t1;
a
drop table t1;
create table t1(a bit(1)) engine=csv;
insert into t1 values();
select BIN(a) from t1;
BIN(a)
0
drop table t1;
create table t1(a enum('foo','bar') default 'foo') engine=csv;
insert into t1 values();
select * from t1;
a
foo
drop table t1;
End of 5.0 tests
End of 5.0 tests
mysql-test/t/csv.test
View file @
f9fc31f9
...
@@ -1427,4 +1427,37 @@ insert into t1 values (0xFF,'LATIN SMALL LETTER Y WITH DIAERESIS');
...
@@ -1427,4 +1427,37 @@ insert into t1 values (0xFF,'LATIN SMALL LETTER Y WITH DIAERESIS');
select
hex
(
c
),
c
,
name
from
t1
order
by
1
;
select
hex
(
c
),
c
,
name
from
t1
order
by
1
;
drop
table
t1
;
drop
table
t1
;
#
# Bug #31473: does not work with NULL value in datetime field
# This bug is a 5.1 but is here to prevent 5.0 regression.
#
create
table
t1
(
a
datetime
)
engine
=
csv
;
insert
into
t1
values
();
select
*
from
t1
;
drop
table
t1
;
create
table
t1
(
a
set
(
'foo'
,
'bar'
))
engine
=
csv
;
insert
into
t1
values
();
select
*
from
t1
;
drop
table
t1
;
create
table
t1
(
a
varchar
(
32
))
engine
=
csv
;
insert
into
t1
values
();
select
*
from
t1
;
drop
table
t1
;
create
table
t1
(
a
int
)
engine
=
csv
;
insert
into
t1
values
();
select
*
from
t1
;
drop
table
t1
;
create
table
t1
(
a
blob
)
engine
=
csv
;
insert
into
t1
values
();
select
*
from
t1
;
drop
table
t1
;
create
table
t1
(
a
bit
(
1
))
engine
=
csv
;
insert
into
t1
values
();
select
BIN
(
a
)
from
t1
;
drop
table
t1
;
create
table
t1
(
a
enum
(
'foo'
,
'bar'
)
default
'foo'
)
engine
=
csv
;
insert
into
t1
values
();
select
*
from
t1
;
drop
table
t1
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
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