~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/t/func_timestamp.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-03-18 12:12:31 UTC
  • Revision ID: james.westby@ubuntu.com-20100318121231-k6g1xe6cshbwa0f8
Tags: upstream-2010.03.1347
ImportĀ upstreamĀ versionĀ 2010.03.1347

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Tests that depend on the timestamp and the TZ variable
 
3
#
 
4
 
 
5
--disable_warnings
 
6
drop table if exists t1;
 
7
--enable_warnings
 
8
 
 
9
# Set timezone to GMT-3, to make it possible to use "interval 3 hour"
 
10
create table t1 (Tag int not null, Monat int not null,
 
11
Jahr int not null, index(Tag), index(Monat), index(Jahr) );
 
12
insert into t1 values (16,9,1998),(16,9,1998);
 
13
SELECT CONCAT(Jahr,'-',Monat,'-',Tag) AS Date,
 
14
   UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag)) AS Unix
 
15
FROM t1;
 
16
drop table t1;
 
17
 
 
18
# End of 4.1 tests