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
c6d9c36f
Commit
c6d9c36f
authored
Aug 15, 2013
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
An additional test for MDEV-4871 Temporal literals do not accept nanoseconds
parent
e9ca6861
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
mysql-test/r/temporal_literal.result
mysql-test/r/temporal_literal.result
+12
-0
mysql-test/t/temporal_literal.test
mysql-test/t/temporal_literal.test
+6
-0
No files found.
mysql-test/r/temporal_literal.result
View file @
c6d9c36f
...
...
@@ -474,3 +474,15 @@ TIMESTAMP('2001-01-01 10:10:10.1234567xyz')
2001-01-01 10:10:10.123456
Warnings:
Warning 1292 Truncated incorrect datetime value: '2001-01-01 10:10:10.1234567xyz'
CREATE TABLE t1 (a TIME(6));
INSERT INTO t1 VALUES (TIME'10:20:30.1234567');
Warnings:
Note 1292 Truncated incorrect time value: '10:20:30.1234567'
INSERT INTO t1 VALUES (TIME('10:20:30.1234567'));
Warnings:
Note 1292 Truncated incorrect time value: '10:20:30.1234567'
SELECT * FROM t1;
a
10:20:30.123456
10:20:30.123456
DROP TABLE t1;
mysql-test/t/temporal_literal.test
View file @
c6d9c36f
...
...
@@ -233,3 +233,9 @@ SELECT TIMESTAMP'2001-01-01 10:10:10.123456xyz';
SELECT
TIMESTAMP
'2001-01-01 10:10:10.1234567xyz'
;
SELECT
TIMESTAMP
(
'2001-01-01 10:10:10.123456xyz'
);
SELECT
TIMESTAMP
(
'2001-01-01 10:10:10.1234567xyz'
);
CREATE
TABLE
t1
(
a
TIME
(
6
));
INSERT
INTO
t1
VALUES
(
TIME
'10:20:30.1234567'
);
INSERT
INTO
t1
VALUES
(
TIME
(
'10:20:30.1234567'
));
SELECT
*
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