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
a67bf98f
Commit
a67bf98f
authored
Mar 19, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lp:738067 Crash in get_datetime_value() in 5.1-micro
parent
e79a72a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+3
-0
mysql-test/t/func_time.test
mysql-test/t/func_time.test
+4
-0
sql/item_func.cc
sql/item_func.cc
+2
-0
No files found.
mysql-test/r/func_time.result
View file @
a67bf98f
...
@@ -1536,3 +1536,6 @@ drop table t1;
...
@@ -1536,3 +1536,6 @@ drop table t1;
select day(coalesce(null));
select day(coalesce(null));
day(coalesce(null))
day(coalesce(null))
NULL
NULL
select timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'));
timestamp(greatest('2002-08-20', '0000-00-00 00:00:00'))
2002-08-20 00:00:00
mysql-test/t/func_time.test
View file @
a67bf98f
...
@@ -973,3 +973,7 @@ drop table t1;
...
@@ -973,3 +973,7 @@ drop table t1;
#
#
select
day
(
coalesce
(
null
));
select
day
(
coalesce
(
null
));
#
# lp:738067 Crash in get_datetime_value() in 5.1-micro
#
select
timestamp
(
greatest
(
'2002-08-20'
,
'0000-00-00 00:00:00'
));
sql/item_func.cc
View file @
a67bf98f
...
@@ -2274,6 +2274,8 @@ bool Item_func_min_max::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
...
@@ -2274,6 +2274,8 @@ bool Item_func_min_max::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
{
{
longlong
UNINIT_VAR
(
min_max
);
longlong
UNINIT_VAR
(
min_max
);
DBUG_ASSERT
(
fixed
==
1
);
DBUG_ASSERT
(
fixed
==
1
);
if
(
!
compare_as_dates
)
return
Item_func
::
get_date
(
ltime
,
fuzzy_date
);
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
{
{
...
...
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