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
eb8d5c36
Commit
eb8d5c36
authored
Oct 04, 2007
by
mhansson@dl145s.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mhansson@bk-internal:/home/bk/mysql-5.1-opt
into dl145s.mysql.com:/data0/mhansson/bug30942/my51-bug30942
parents
009d8b60
ec959efa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
mysql-test/r/type_date.result
mysql-test/r/type_date.result
+10
-0
mysql-test/t/type_date.test
mysql-test/t/type_date.test
+13
-0
sql/item_timefunc.h
sql/item_timefunc.h
+1
-1
No files found.
mysql-test/r/type_date.result
View file @
eb8d5c36
...
...
@@ -145,3 +145,13 @@ d dt ts
0000-00-00 0000-00-00 00:00:00 0000-00-00 00:00:00
2001-11-11 2001-11-11 00:00:00 2001-11-11 00:00:00
drop table t1;
CREATE TABLE t1 (
a INT
);
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (NULL);
SELECT str_to_date( '', a ) FROM t1;
str_to_date( '', a )
0000-00-00 00:00:00
NULL
DROP TABLE t1;
mysql-test/t/type_date.test
View file @
eb8d5c36
...
...
@@ -139,3 +139,16 @@ insert into t1 values (9912101,9912101,9912101);
insert
into
t1
values
(
11111
,
11111
,
11111
);
select
*
from
t1
;
drop
table
t1
;
#
# Bug #30942: select str_to_date from derived table returns varying results
#
CREATE
TABLE
t1
(
a
INT
);
INSERT
INTO
t1
VALUES
(
1
);
INSERT
INTO
t1
VALUES
(
NULL
);
SELECT
str_to_date
(
''
,
a
)
FROM
t1
;
DROP
TABLE
t1
;
sql/item_timefunc.h
View file @
eb8d5c36
...
...
@@ -1007,7 +1007,7 @@ class Item_func_str_to_date :public Item_str_func
bool
const_item
;
public:
Item_func_str_to_date
(
Item
*
a
,
Item
*
b
)
:
Item_str_func
(
a
,
b
)
:
Item_str_func
(
a
,
b
)
,
const_item
(
false
)
{}
String
*
val_str
(
String
*
str
);
bool
get_date
(
MYSQL_TIME
*
ltime
,
uint
fuzzy_date
);
...
...
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