~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/transaction_log/tests/t/null_values.inc

  • Committer: Andrew Hutchings
  • Date: 2010-09-29 10:45:38 UTC
  • mfrom: (1801 staging)
  • mto: (1808.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1809.
  • Revision ID: andrew@linuxjedi.co.uk-20100929104538-08caqgiqyh2ft24b
Merge trunk into branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
4
4
 
5
5
--disable_warnings
6
 
DROP TABLE IF EXISTS t1, t2, t3;
 
6
DROP TABLE IF EXISTS t1, t2, t3, t4;
7
7
--enable_warnings
8
8
 
9
9
CREATE TABLE t1 (a INT NOT NULL, b CHAR(1000), PRIMARY KEY (a));
26
26
INSERT INTO t3 VALUES (1,'1');
27
27
INSERT INTO t3 VALUES (2,NULL);
28
28
 
29
 
DROP TABLE t1, t2, t3;
 
29
CREATE TABLE t4 (id INT NOT NULL, col0_int INT DEFAULT NULL, col1_int INT DEFAULT NULL, PRIMARY KEY (id));
 
30
INSERT INTO t4 VALUES (1, NULL, 1);
 
31
UPDATE t4 SET col0_int= 0 WHERE col1_int != 2;
 
32
UPDATE t4 SET col0_int= NULL WHERE col1_int != 2;
 
33
 
 
34
DROP TABLE t1, t2, t3, t4;