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
2e3496c2
Commit
2e3496c2
authored
Mar 28, 2011
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.1->5.5 merge
parents
86c41989
c442532c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+6
-0
mysql-test/t/func_time.test
mysql-test/t/func_time.test
+6
-0
sql/item_timefunc.cc
sql/item_timefunc.cc
+2
-2
No files found.
mysql-test/r/func_time.result
View file @
2e3496c2
...
...
@@ -1347,6 +1347,12 @@ Warning 1292 Truncated incorrect time value: ''
Warning 1292 Truncated incorrect time value: ''
Warning 1292 Truncated incorrect time value: ''
DROP TABLE t1;
#
# Bug#11766112 59151:UNINITIALIZED VALUES IN EXTRACT_DATE_TIME WITH STR_TO_DATE(SPACE(..) ...
#
SELECT STR_TO_DATE(SPACE(2),'1');
STR_TO_DATE(SPACE(2),'1')
0000-00-00
End of 5.1 tests
#
# Bug#57039: constant subtime expression returns incorrect result.
...
...
mysql-test/t/func_time.test
View file @
2e3496c2
...
...
@@ -862,6 +862,12 @@ INSERT INTO t1 VALUES (''),('');
SELECT
COUNT
(
*
)
FROM
t1
GROUP
BY
TIME_TO_SEC
(
a
);
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#11766112 59151:UNINITIALIZED VALUES IN EXTRACT_DATE_TIME WITH STR_TO_DATE(SPACE(..) ...
--
echo
#
SELECT
STR_TO_DATE
(
SPACE
(
2
),
'1'
);
--
echo
End
of
5.1
tests
--
echo
#
...
...
sql/item_timefunc.cc
View file @
2e3496c2
...
...
@@ -315,8 +315,8 @@ static bool extract_date_time(DATE_TIME_FORMAT *format,
for
(;
ptr
!=
end
&&
val
!=
val_end
;
ptr
++
)
{
/* Skip pre-space between each argument */
while
(
val
!=
val_end
&&
my_isspace
(
cs
,
*
val
)
)
val
++
;
if
((
val
+=
cs
->
cset
->
scan
(
cs
,
val
,
val_end
,
MY_SEQ_SPACES
))
>=
val_end
)
break
;
if
(
*
ptr
==
'%'
&&
ptr
+
1
!=
end
)
{
...
...
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