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
a5dd9cdc
Commit
a5dd9cdc
authored
Feb 27, 2008
by
kaa@kaamos.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge kaamos.(none):/data/src/opt/bug33834/my50-bug33834
into kaamos.(none):/data/src/opt/bug33834/my51-bug33834
parents
4181d66b
d9e7b3b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mysql-test/t/func_time.test
mysql-test/t/func_time.test
+7
-1
No files found.
mysql-test/t/func_time.test
View file @
a5dd9cdc
...
...
@@ -336,7 +336,7 @@ select date_add(date,INTERVAL "1" QUARTER) from t1;
select
timestampadd
(
MINUTE
,
1
,
date
)
from
t1
;
select
timestampadd
(
WEEK
,
1
,
date
)
from
t1
;
select
timestampadd
(
SQL_TSI_SECOND
,
1
,
date
)
from
t1
;
#
Prepared statements doesn't support FRAC_SECOND yet
#
mysqltest.c discards an expected 'deprecated' warning on prepare stage
--
disable_ps_protocol
select
timestampadd
(
SQL_TSI_FRAC_SECOND
,
1
,
date
)
from
t1
;
--
enable_ps_protocol
...
...
@@ -351,7 +351,10 @@ select timestampdiff(SQL_TSI_HOUR, '2001-02-01', '2001-05-01') as a;
select
timestampdiff
(
SQL_TSI_DAY
,
'2001-02-01'
,
'2001-05-01'
)
as
a
;
select
timestampdiff
(
SQL_TSI_MINUTE
,
'2001-02-01 12:59:59'
,
'2001-05-01 12:58:59'
)
as
a
;
select
timestampdiff
(
SQL_TSI_SECOND
,
'2001-02-01 12:59:59'
,
'2001-05-01 12:58:58'
)
as
a
;
# mysqltest.c discards an expected 'deprecated' warning on prepare stage
--
disable_ps_protocol
select
timestampdiff
(
SQL_TSI_FRAC_SECOND
,
'2001-02-01 12:59:59.120000'
,
'2001-05-01 12:58:58.119999'
)
as
a
;
--
enable_ps_protocol
select
timestampdiff
(
SQL_TSI_DAY
,
'1986-02-01'
,
'1986-03-01'
)
as
a1
,
timestampdiff
(
SQL_TSI_DAY
,
'1900-02-01'
,
'1900-03-01'
)
as
a2
,
...
...
@@ -789,8 +792,11 @@ select LAST_DAY('2007-12-06 08:59:19.05') - INTERVAL 1 SECOND;
# Show that he use of FRAC_SECOND, for anything other than
# TIMESTAMPADD / TIMESTAMPDIFF, is a server error.
# mysqltest.c discards an expected 'deprecated' warning on prepare stage
--
disable_ps_protocol
SELECT
TIMESTAMPADD
(
FRAC_SECOND
,
1
,
'2008-02-18'
);
SELECT
TIMESTAMPDIFF
(
FRAC_SECOND
,
'2008-02-17'
,
'2008-02-18'
);
--
enable_ps_protocol
--
error
ER_PARSE_ERROR
SELECT
DATE_ADD
(
'2008-02-18'
,
INTERVAL
1
FRAC_SECOND
);
...
...
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