summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2003-11-17 18:02:47 +0400
committerunknown <gluh@gluh.mysql.r18.ru>2003-11-17 18:02:47 +0400
commit8fed6653de2c298704f9ee74f96f17184af46b45 (patch)
tree5fca630ee19a8f2a9b1405967f046e0dad5fed3d /mysql-test/t
parent85aa80f0bb3fbd6af068695bb2e386623dfd288d (diff)
parentac584b24340a6abdce56a62e370feb1d51343488 (diff)
downloadmariadb-git-8fed6653de2c298704f9ee74f96f17184af46b45.tar.gz
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
into gluh.mysql.r18.ru:/home/gluh/mysql-4.1.lastday
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/func_time.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test
index 96bdb547469..f1a24a4c3cb 100644
--- a/mysql-test/t/func_time.test
+++ b/mysql-test/t/func_time.test
@@ -224,6 +224,19 @@ select date_add(date,INTERVAL "1 1:1:1" DAY_SECOND) from t1;
select date_add(time,INTERVAL 1 SECOND) from t1;
drop table t1;
+# test for last_day
+select last_day('2000-02-05') as f1, last_day('2002-12-31') as f2,
+ last_day('2003-03-32') as f3, last_day('2003-04-01') as f4,
+ last_day('2001-01-01 01:01:01') as f5, last_day(NULL),
+ last_day('2001-02-12');
+
+create table t1 select last_day('2000-02-05') as a;
+describe t1;
+select * from t1;
+drop table t1;
+select last_day('2000-02-05');
+
+
# Test SAPDB UTC_% functions. This part is TZ dependant (It is supposed that
# TZ variable set to GMT-3
select strcmp(date_sub(localtimestamp(), interval 3 hour), utc_timestamp())=0;