1
# Lets Make sure everything is turned on for us.
2
SELECT VARIABLE_NAME,VARIABLE_VALUE FROM DATA_DICTIONARY.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE "hello%";
4
select IF(@BEFORE_INSERT_RECORD, "YES", "NO");
5
select IF(@AFTER_INSERT_RECORD, "YES", "NO");
6
select IF(@BEFORE_UPDATE_RECORD, "YES", "NO");
7
select IF(@AFTER_UPDATE_RECORD, "YES", "NO");
8
select IF(@BEFORE_DELETE_RECORD, "YES", "NO");
9
select IF(@AFTER_DELETE_RECORD, "YES", "NO");
11
CREATE TABLE t1 (a SERIAL);
13
select IF(@BEFORE_INSERT_RECORD, "YES", "NO");
14
select IF(@AFTER_INSERT_RECORD, "YES", "NO");
15
select IF(@BEFORE_UPDATE_RECORD, "YES", "NO");
16
select IF(@AFTER_UPDATE_RECORD, "YES", "NO");
17
select IF(@BEFORE_DELETE_RECORD, "YES", "NO");
18
select IF(@AFTER_DELETE_RECORD, "YES", "NO");
20
INSERT INTO t1 VALUES ();
22
select IF(@BEFORE_INSERT_RECORD, "YES", "NO");
23
select IF(@AFTER_INSERT_RECORD, "YES", "NO");
24
select IF(@BEFORE_UPDATE_RECORD, "YES", "NO");
25
select IF(@AFTER_UPDATE_RECORD, "YES", "NO");
26
select IF(@BEFORE_DELETE_RECORD, "YES", "NO");
27
select IF(@AFTER_DELETE_RECORD, "YES", "NO");
29
INSERT INTO t1 VALUES ();
30
INSERT INTO t1 VALUES ();
32
select IF(@BEFORE_INSERT_RECORD, "YES", "NO");
33
select IF(@AFTER_INSERT_RECORD, "YES", "NO");
34
select IF(@BEFORE_UPDATE_RECORD, "YES", "NO");
35
select IF(@AFTER_UPDATE_RECORD, "YES", "NO");
36
select IF(@BEFORE_DELETE_RECORD, "YES", "NO");
37
select IF(@AFTER_DELETE_RECORD, "YES", "NO");
39
UPDATE t1 SET a= a+10;
40
select IF(@BEFORE_INSERT_RECORD, "YES", "NO");
41
select IF(@AFTER_INSERT_RECORD, "YES", "NO");
42
select IF(@BEFORE_UPDATE_RECORD, "YES", "NO");
43
select IF(@AFTER_UPDATE_RECORD, "YES", "NO");
44
select IF(@BEFORE_DELETE_RECORD, "YES", "NO");
45
select IF(@AFTER_DELETE_RECORD, "YES", "NO");