~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/t/func_timestamp.test

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

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
set time_zone="+03:00";
 
11
 
 
12
create table t1 (Zeit time, Tag tinyint not null, Monat tinyint not null,
 
13
Jahr smallint not null, index(Tag), index(Monat), index(Jahr) );
 
14
insert into t1 values ("09:26:00",16,9,1998),("09:26:00",16,9,1998);
 
15
SELECT CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit) AS Date,
 
16
   UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit)) AS Unix
 
17
FROM t1;
 
18
drop table t1;
 
19
 
 
20
# End of 4.1 tests
 
21
 
 
22
# Restore timezone to default
 
23
set time_zone= @@global.time_zone;