mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / engines / funcs / r / in_number_boundary_error.result
blob556b5a05764b0749b0e35dd762cd9ad5cbc397a9
1 SET SQL_MODE="TRADITIONAL,ANSI";
2 DROP TABLE IF EXISTS t4;
3 CREATE TABLE t4(c1 TINYINT UNSIGNED NOT NULL);
4 INSERT INTO t4 (c1) VALUES(NULL);
5 ERROR 23000: Column 'c1' cannot be null
6 INSERT INTO t4 (c1) VALUES(0);
7 INSERT INTO t4 (c1) VALUES(-1);
8 ERROR 22003: Out of range value for column 'c1' at row 1
9 INSERT INTO t4 (c1) VALUES('x');
10 ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
11 INSERT INTO t4 (c1) VALUES('9');
12 SELECT COUNT(c1) AS total_rows FROM t4;
13 total_rows
15 SELECT COUNT(c1) AS null_rows FROM t4 WHERE c1 IS NULL;
16 null_rows
18 SELECT COUNT(c1) AS not_null_rows FROM t4 WHERE c1 IS NOT NULL;
19 not_null_rows
21 DROP TABLE t4;
22 CREATE TABLE t4(c1 SMALLINT UNSIGNED NOT NULL);
23 INSERT INTO t4 (c1) VALUES(NULL);
24 ERROR 23000: Column 'c1' cannot be null
25 INSERT INTO t4 (c1) VALUES(0);
26 INSERT INTO t4 (c1) VALUES(-1);
27 ERROR 22003: Out of range value for column 'c1' at row 1
28 INSERT INTO t4 (c1) VALUES('x');
29 ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
30 INSERT INTO t4 (c1) VALUES('9');
31 SELECT COUNT(c1) AS total_rows FROM t4;
32 total_rows
34 SELECT COUNT(c1) AS null_rows FROM t4 WHERE c1 IS NULL;
35 null_rows
37 SELECT COUNT(c1) AS not_null_rows FROM t4 WHERE c1 IS NOT NULL;
38 not_null_rows
40 DROP TABLE t4;
41 CREATE TABLE t4(c1 MEDIUMINT UNSIGNED NOT NULL);
42 INSERT INTO t4 (c1) VALUES(NULL);
43 ERROR 23000: Column 'c1' cannot be null
44 INSERT INTO t4 (c1) VALUES(0);
45 INSERT INTO t4 (c1) VALUES(-1);
46 ERROR 22003: Out of range value for column 'c1' at row 1
47 INSERT INTO t4 (c1) VALUES('x');
48 ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
49 INSERT INTO t4 (c1) VALUES('9');
50 SELECT COUNT(c1) AS total_rows FROM t4;
51 total_rows
53 SELECT COUNT(c1) AS null_rows FROM t4 WHERE c1 IS NULL;
54 null_rows
56 SELECT COUNT(c1) AS not_null_rows FROM t4 WHERE c1 IS NOT NULL;
57 not_null_rows
59 DROP TABLE t4;
60 CREATE TABLE t4(c1 INT UNSIGNED NOT NULL);
61 INSERT INTO t4 (c1) VALUES(NULL);
62 ERROR 23000: Column 'c1' cannot be null
63 INSERT INTO t4 (c1) VALUES(0);
64 INSERT INTO t4 (c1) VALUES(-1);
65 ERROR 22003: Out of range value for column 'c1' at row 1
66 INSERT INTO t4 (c1) VALUES('x');
67 ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
68 INSERT INTO t4 (c1) VALUES('9');
69 SELECT COUNT(c1) AS total_rows FROM t4;
70 total_rows
72 SELECT COUNT(c1) AS null_rows FROM t4 WHERE c1 IS NULL;
73 null_rows
75 SELECT COUNT(c1) AS not_null_rows FROM t4 WHERE c1 IS NOT NULL;
76 not_null_rows
78 DROP TABLE t4;
79 CREATE TABLE t4(c1 INTEGER UNSIGNED NOT NULL);
80 INSERT INTO t4 (c1) VALUES(NULL);
81 ERROR 23000: Column 'c1' cannot be null
82 INSERT INTO t4 (c1) VALUES(0);
83 INSERT INTO t4 (c1) VALUES(-1);
84 ERROR 22003: Out of range value for column 'c1' at row 1
85 INSERT INTO t4 (c1) VALUES('x');
86 ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
87 INSERT INTO t4 (c1) VALUES('9');
88 SELECT COUNT(c1) AS total_rows FROM t4;
89 total_rows
91 SELECT COUNT(c1) AS null_rows FROM t4 WHERE c1 IS NULL;
92 null_rows
94 SELECT COUNT(c1) AS not_null_rows FROM t4 WHERE c1 IS NOT NULL;
95 not_null_rows
97 DROP TABLE t4;
98 CREATE TABLE t4(c1 BIGINT UNSIGNED NOT NULL);
99 INSERT INTO t4 (c1) VALUES(NULL);
100 ERROR 23000: Column 'c1' cannot be null
101 INSERT INTO t4 (c1) VALUES(0);
102 INSERT INTO t4 (c1) VALUES(-1);
103 ERROR 22003: Out of range value for column 'c1' at row 1
104 INSERT INTO t4 (c1) VALUES('x');
105 ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
106 INSERT INTO t4 (c1) VALUES('9');
107 SELECT COUNT(c1) AS total_rows FROM t4;
108 total_rows
110 SELECT COUNT(c1) AS null_rows FROM t4 WHERE c1 IS NULL;
111 null_rows
113 SELECT COUNT(c1) AS not_null_rows FROM t4 WHERE c1 IS NOT NULL;
114 not_null_rows
116 DROP TABLE t4;