~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/r/in_enum_null.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-11 18:47:32 UTC
  • mto: (2.1.2 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100511184732-jhn055kfhxze24kt
Tags: upstream-5.1.46
ImportĀ upstreamĀ versionĀ 5.1.46

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DROP TABLE IF EXISTS t7;
 
2
CREATE TABLE t7(c1 ENUM('a','abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij') NULL);
 
3
INSERT INTO t7(c1) VALUES(NULL);
 
4
INSERT INTO t7(c1) VALUES('');
 
5
Warnings:
 
6
Warning 1265    Data truncated for column 'c1' at row 1
 
7
INSERT INTO t7(c1) VALUES('a');
 
8
INSERT INTO t7(c1) VALUES('abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
 
9
INSERT INTO t7(c1) VALUES('abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij');
 
10
Warnings:
 
11
Warning 1265    Data truncated for column 'c1' at row 1
 
12
SELECT * FROM t7;
 
13
c1
 
14
NULL
 
15
 
 
16
a
 
17
abcdefghijabcdefghijabcdefghijabcdefghijabcdefghij
 
18
 
 
19
SELECT COUNT(c1) AS null_rows FROM t7 WHERE c1 IS NULL;
 
20
null_rows
 
21
0
 
22
DROP TABLE t7;