~skinny.moey/drizzle/fix_global_stats

« back to all changes in this revision

Viewing changes to tests/r/type_enum.result

  • Committer: Brian Aker
  • Date: 2010-06-11 17:53:40 UTC
  • mfrom: (1608.1.3 build)
  • Revision ID: brian@gaz-20100611175340-9ok4r35ait2sb2de
Rollup merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1646
1646
a
1647
1647
drop table t1;
1648
1648
create table t1 (a enum(0xE4, '1', '2') not null default 0xE4);
1649
 
show columns from t1;
1650
 
Field   Type    Null    Default Default_is_NULL On_Update
1651
 
a       ENUM    FALSE           FALSE   
1652
 
Warnings:
1653
 
Warning 1366    Incorrect string value: '\xE4' for column 'Default' at row 0
1654
 
show create table t1;
1655
 
Table   Create Table
1656
 
t1      CREATE TABLE `t1` (
1657
 
  `a` enum('�','1','2') NOT NULL DEFAULT '�'
1658
 
) ENGINE=InnoDB
1659
 
drop table t1;
 
1649
ERROR HY000: Corrupt or invalid table definition: 
1660
1650
create table t1 (a enum(0xC3A4, '1', '2') not null default 0xC3A4);
1661
1651
show columns from t1;
1662
1652
Field   Type    Null    Default Default_is_NULL On_Update
1671
1661
a INT  default 1,
1672
1662
b ENUM('value','���_value','���') NOT NULL
1673
1663
);
1674
 
show create table t1;
1675
 
Table   Create Table
1676
 
t1      CREATE TABLE `t1` (
1677
 
  `a` int DEFAULT '1',
1678
 
  `b` enum('value','���_value','���') NOT NULL
1679
 
) ENGINE=InnoDB
1680
 
show columns from t1;
1681
 
Field   Type    Null    Default Default_is_NULL On_Update
1682
 
a       INTEGER TRUE    1       FALSE   
1683
 
b       ENUM    FALSE           FALSE   
1684
 
drop table t1;
 
1664
ERROR HY000: Corrupt or invalid table definition: 
1685
1665
CREATE TABLE t1 (c enum('ae','oe','ue','ss') collate utf8_unicode_ci);
1686
1666
INSERT INTO t1 VALUES ('�');
1687
1667
ERROR HY000: Received an invalid enum value '�'.
1697
1677
CREATE TABLE t1 (
1698
1678
a ENUM('�','�','�') default '�'
1699
1679
);
1700
 
show create table t1;
1701
 
Table   Create Table
1702
 
t1      CREATE TABLE `t1` (
1703
 
  `a` enum('�','�','�') DEFAULT '�'
1704
 
) ENGINE=InnoDB
1705
 
insert into t1 values ('�'), ('�'), ('�');
1706
 
select a from t1 order by a;
1707
 
a
1708
 
1709
 
1710
 
1711
 
drop table t1;
 
1680
ERROR HY000: Corrupt or invalid table definition: 
1712
1681
CREATE TABLE t1 (
1713
1682
a ENUM('ä','ö','ü') default 'ü'
1714
1683
);
1744
1713
) ENGINE=InnoDB
1745
1714
drop table t1;
1746
1715
create table t1(russian enum('E','F','E�F','F�E') NOT NULL DEFAULT'E');
1747
 
show create table t1;
1748
 
Table   Create Table
1749
 
t1      CREATE TABLE `t1` (
1750
 
  `russian` enum('E','F','E�F','F�E') NOT NULL DEFAULT 'E'
1751
 
) ENGINE=InnoDB
1752
 
drop table t1;
 
1716
ERROR HY000: Corrupt or invalid table definition: 
1753
1717
create table t1(denormal enum('E','F','E,F','F,E') NOT NULL DEFAULT'E');
1754
1718
show create table t1;
1755
1719
Table   Create Table
1758
1722
) ENGINE=InnoDB
1759
1723
drop table t1;
1760
1724
create table t1(russian_deviant enum('E','F','E�F','F,E') NOT NULL DEFAULT'E');
1761
 
show create table t1;
1762
 
Table   Create Table
1763
 
t1      CREATE TABLE `t1` (
1764
 
  `russian_deviant` enum('E','F','E�F','F,E') NOT NULL DEFAULT 'E'
1765
 
) ENGINE=InnoDB
1766
 
drop table t1;
 
1725
ERROR HY000: Corrupt or invalid table definition: 
1767
1726
CREATE TABLE t1 (
1768
1727
id INT AUTO_INCREMENT PRIMARY KEY,
1769
1728
c1 ENUM('a', '', 'b')