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

« back to all changes in this revision

Viewing changes to mysql-test/r/type_datetime.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:
768
768
SET @org_mode=@@sql_mode;
769
769
#Table creation in strict mode
770
770
SET @@sql_mode='NO_ZERO_DATE,STRICT_ALL_TABLES';
 
771
Warnings:
 
772
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
771
773
CREATE TABLE t1 (c1 DATETIME DEFAULT 0);
772
774
ERROR 42000: Invalid default value for 'c1'
773
775
CREATE TABLE t1 (c1 DATETIME DEFAULT '0000-00-00 00:00:00');
774
776
ERROR 42000: Invalid default value for 'c1'
775
777
SET @@sql_mode='NO_ZERO_IN_DATE,STRICT_ALL_TABLES';
 
778
Warnings:
 
779
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
776
780
CREATE TABLE t1 (c1 DATETIME DEFAULT '2012-02-00 12:12:12');
777
781
ERROR 42000: Invalid default value for 'c1'
778
782
#Table creation in non-strict mode but with NO_ZERO_DATE/NO_ZERO_IN_DATE
779
783
SET @@sql_mode='NO_ZERO_DATE';
 
784
Warnings:
 
785
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
780
786
CREATE TABLE t1 (c1 DATETIME DEFAULT 0);
781
787
Warnings:
782
788
Warning 1264    Out of range value for column 'c1' at row 1
784
790
Warnings:
785
791
Warning 1264    Out of range value for column 'c1' at row 1
786
792
SET @@sql_mode='NO_ZERO_IN_DATE';
 
793
Warnings:
 
794
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
787
795
CREATE TABLE t3 (c1 DATETIME DEFAULT '2012-02-00 12:12:12');
788
796
Warnings:
789
797
Warning 1264    Out of range value for column 'c1' at row 1
797
805
CREATE TABLE t1 (c1 int);
798
806
#Alter table in strict mode with NO_ZERO_DATE/NO_ZERO_IN_DATE
799
807
SET @@sql_mode='NO_ZERO_DATE,STRICT_ALL_TABLES';
 
808
Warnings:
 
809
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
800
810
ALTER TABLE t1 ADD c2 DATETIME DEFAULT 0;
801
811
ERROR 42000: Invalid default value for 'c2'
802
812
ALTER TABLE t1 ADD c2 DATETIME DEFAULT '0000-00-00';
803
813
ERROR 42000: Invalid default value for 'c2'
804
814
SET @@sql_mode='NO_ZERO_IN_DATE,STRICT_ALL_TABLES';
 
815
Warnings:
 
816
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
805
817
ALTER TABLE t1 ADD c2 DATETIME DEFAULT '2012-02-00';
806
818
ERROR 42000: Invalid default value for 'c2'
807
819
#Alter table in non-strict mode but with NO_ZERO_DATE/NO_ZERO_IN_DATE
808
820
SET @@sql_mode='NO_ZERO_DATE';
 
821
Warnings:
 
822
Warning 1681    'NO_ZERO_DATE' is deprecated and will be removed in a future release.
809
823
ALTER TABLE t1 ADD c2 DATETIME DEFAULT 0;
810
824
Warnings:
811
825
Warning 1264    Out of range value for column 'c2' at row 1
814
828
Warning 1264    Out of range value for column 'c2' at row 1
815
829
Warning 1264    Out of range value for column 'c3' at row 1
816
830
SET @@sql_mode='NO_ZERO_IN_DATE';
 
831
Warnings:
 
832
Warning 1681    'NO_ZERO_IN_DATE' is deprecated and will be removed in a future release.
817
833
ALTER TABLE t1 ADD c4 DATETIME DEFAULT '2012-02-00';
818
834
Warnings:
819
835
Warning 1264    Out of range value for column 'c4' at row 1