~ubuntu-branches/ubuntu/wily/mysql-5.6/wily

« back to all changes in this revision

Viewing changes to mysql-test/r/type_timestamp_explicit.result

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-04-25 08:06:10 UTC
  • mfrom: (1.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20140425080610-4k2xstl3pagqvsmb
Tags: 5.6.17-1~exp1
* SECURITY UPDATE: New upstream release (Closes: #744970).
  - http://www.oracle.com/technetwork/topics/security/cpuapr2014-1972952.html
  - CVE-2014-0001
  - CVE-2014-2430
  - CVE-2014-2431
  - CVE-2014-2435
  - CVE-2014-2436
  - CVE-2014-2440
* d/p/CVE-2014-0001.patch: Dropped, included in security update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
645
645
SET @org_mode=@@sql_mode;
646
646
#Table creation in strict mode
647
647
SET @@sql_mode='NO_ZERO_DATE,STRICT_ALL_TABLES';
 
648
Warnings:
 
649
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
648
650
CREATE TABLE t1 (c1 TIMESTAMP DEFAULT 0);
649
651
ERROR 42000: Invalid default value for 'c1'
650
652
CREATE TABLE t1 (c1 TIMESTAMP DEFAULT '0000-00-00 00:00:00');
651
653
ERROR 42000: Invalid default value for 'c1'
652
654
SET @@sql_mode='NO_ZERO_IN_DATE,STRICT_ALL_TABLES';
 
655
Warnings:
 
656
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
653
657
CREATE TABLE t1 (c1 TIMESTAMP DEFAULT '2012-02-00 12:12:12');
654
658
ERROR 42000: Invalid default value for 'c1'
655
659
#Table creation in non-strict mode but with NO_ZERO_DATE/NO_ZERO_IN_DATE
656
660
SET @@sql_mode='NO_ZERO_DATE';
 
661
Warnings:
 
662
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
657
663
CREATE TABLE t1 (c1 TIMESTAMP DEFAULT 0);
658
664
Warnings:
659
665
Warning 1264    Out of range value for column 'c1' at row 1
661
667
Warnings:
662
668
Warning 1264    Out of range value for column 'c1' at row 1
663
669
SET @@sql_mode='NO_ZERO_IN_DATE';
 
670
Warnings:
 
671
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
664
672
CREATE TABLE t3 (c1 TIMESTAMP DEFAULT '2012-02-00 12:12:12');
665
673
Warnings:
666
674
Warning 1264    Out of range value for column 'c1' at row 1
676
684
CREATE TABLE t1 (c1 INT);
677
685
#Alter table in strict mode with NO_ZERO_DATE/NO_ZERO_IN_DATE
678
686
SET @@sql_mode='NO_ZERO_DATE,STRICT_ALL_TABLES';
 
687
Warnings:
 
688
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
679
689
ALTER TABLE t1 ADD c2 TIMESTAMP DEFAULT 0;
680
690
ERROR 42000: Invalid default value for 'c2'
681
691
ALTER TABLE t1 ADD c2 TIMESTAMP DEFAULT '0000-00-00';
682
692
ERROR 42000: Invalid default value for 'c2'
683
693
SET @@sql_mode='NO_ZERO_IN_DATE,STRICT_ALL_TABLES';
 
694
Warnings:
 
695
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
684
696
ALTER TABLE t1 ADD c2 TIMESTAMP DEFAULT '2012-02-00';
685
697
ERROR 42000: Invalid default value for 'c2'
686
698
#Alter table in non-strict mode but with NO_ZERO_DATE/NO_ZERO_IN_DATE
687
699
SET @@sql_mode='NO_ZERO_DATE';
 
700
Warnings:
 
701
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
688
702
ALTER TABLE t1 ADD c2 TIMESTAMP DEFAULT 0;
689
703
Warnings:
690
704
Warning 1264    Out of range value for column 'c2' at row 1
693
707
Warning 1264    Out of range value for column 'c2' at row 1
694
708
Warning 1264    Out of range value for column 'c3' at row 1
695
709
SET @@sql_mode='NO_ZERO_IN_DATE';
 
710
Warnings:
 
711
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
696
712
ALTER TABLE t1 ADD c4 TIMESTAMP DEFAULT '2012-02-00';
697
713
Warnings:
698
714
Warning 1264    Out of range value for column 'c4' at row 1