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
c6e79e11
Commit
c6e79e11
authored
Oct 06, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into sin.intern.azundris.com:/home/tnurnberg/31253/50-31253
parents
66fd9a34
2e8ca84e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/type_datetime.result
mysql-test/r/type_datetime.result
+9
-0
mysql-test/t/type_datetime.test
mysql-test/t/type_datetime.test
+10
-0
sql/item.cc
sql/item.cc
+1
-0
No files found.
mysql-test/r/type_datetime.result
View file @
c6e79e11
...
...
@@ -427,3 +427,12 @@ f1
Warnings:
Warning 1292 Incorrect datetime value: '2007010100000' for column 'f1' at row 1
drop table t1;
create table t1 (f1 time);
insert into t1 set f1 = '45:44:44';
insert into t1 set f1 = '15:44:44';
select * from t1 where (convert(f1,datetime)) != 1;
f1
15:44:44
Warnings:
Warning 1292 Truncated incorrect datetime value: '0000-00-00 45:44:44'
drop table t1;
mysql-test/t/type_datetime.test
View file @
c6e79e11
...
...
@@ -282,3 +282,13 @@ select * from t1 where f1 between 20020101 and 20070101000000;
select
*
from
t1
where
f1
between
2002010
and
20070101000000
;
select
*
from
t1
where
f1
between
20020101
and
2007010100000
;
drop
table
t1
;
#
# Bug #31253: crash comparing datetime to double
# Should return 1st row only. Crashes if NULL propagation fails.
#
create
table
t1
(
f1
time
);
insert
into
t1
set
f1
=
'45:44:44'
;
insert
into
t1
set
f1
=
'15:44:44'
;
select
*
from
t1
where
(
convert
(
f1
,
datetime
))
!=
1
;
drop
table
t1
;
sql/item.cc
View file @
c6e79e11
...
...
@@ -274,6 +274,7 @@ my_decimal *Item::val_decimal_from_date(my_decimal *decimal_value)
if
(
get_date
(
&
ltime
,
TIME_FUZZY_DATE
))
{
my_decimal_set_zero
(
decimal_value
);
null_value
=
1
;
// set NULL, stop processing
return
0
;
}
return
date2my_decimal
(
&
ltime
,
decimal_value
);
...
...
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