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
bf0557cc
Commit
bf0557cc
authored
Jan 15, 2001
by
tim@cane.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for str_to_time
parent
76845791
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
mysql-test/r/func_time.result
mysql-test/r/func_time.result
+2
-0
mysql-test/t/func_time.test
mysql-test/t/func_time.test
+7
-0
No files found.
mysql-test/r/func_time.result
View file @
bf0557cc
...
@@ -184,3 +184,5 @@ extract(MINUTE_SECOND FROM "10:11:12")
...
@@ -184,3 +184,5 @@ extract(MINUTE_SECOND FROM "10:11:12")
1112
1112
extract(SECOND FROM "1999-01-02 10:11:12")
extract(SECOND FROM "1999-01-02 10:11:12")
12
12
ctime hour(ctime)
2001-01-12 12:23:40 12
mysql-test/t/func_time.test
View file @
bf0557cc
...
@@ -98,3 +98,10 @@ select extract(HOUR_SECOND FROM "10:11:12");
...
@@ -98,3 +98,10 @@ select extract(HOUR_SECOND FROM "10:11:12");
select
extract
(
MINUTE
FROM
"10:11:12"
);
select
extract
(
MINUTE
FROM
"10:11:12"
);
select
extract
(
MINUTE_SECOND
FROM
"10:11:12"
);
select
extract
(
MINUTE_SECOND
FROM
"10:11:12"
);
select
extract
(
SECOND
FROM
"1999-01-02 10:11:12"
);
select
extract
(
SECOND
FROM
"1999-01-02 10:11:12"
);
drop
table
if
exists
t1
;
create
table
t1
(
ctime
varchar
(
20
));
insert
into
t1
values
(
'2001-01-12 12:23:40'
);
select
ctime
,
hour
(
ctime
)
from
t1
;
drop
table
t1
;
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