Current Path : /compat/linux/proc/self/root/home/usr.opt/mysql57/mysql-test/include/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/home/usr.opt/mysql57/mysql-test/include/trigger_17864349.inc |
# $column1_type_name must be set. # $column2_type_name must be set. # $column2_value must be set. --echo # t1 column type name: $column1_type_name --echo # t2 column type name: $column2_type_name --echo # t2 column value: $column2_value eval CREATE TABLE t1(a INT, b $column1_type_name); eval CREATE TABLE t2(a INT, b $column2_type_name NOT NULL); INSERT INTO t1 VALUES (1, NULL); eval INSERT INTO t2 VALUES (1, $column2_value); CREATE TRIGGER t2_bu BEFORE UPDATE ON t2 FOR EACH ROW SET @b = 1; --error ER_BAD_NULL_ERROR UPDATE t1, t2 SET t2.b = t1.b; DROP TABLE t1, t2;