~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FLUSH STATUS;
SHOW STATUS LIKE 'Handler_update';
Variable_name	Value
Handler_update	0
CREATE TABLE t1 (a int primary key);
INSERT INTO t1 VALUES (1);
SHOW STATUS LIKE 'Handler_update';
Variable_name	Value
Handler_update	0
UPDATE t1 SET a=2 WHERE a=1;
SHOW STATUS LIKE 'Handler_update';
Variable_name	Value
Handler_update	1
DROP TABLE t1;
FLUSH STATUS;
CREATE TABLE t1 (a int primary key, b varchar(100));
INSERT INTO t1 VALUES (1,"hello"), (2, "goodbye");
UPDATE t1 SET b="world" WHERE a=1;
SHOW STATUS LIKE 'Handler_update';
Variable_name	Value
Handler_update	1
UPDATE t1 SET a=a+10;
SHOW STATUS LIKE 'Handler_update';
Variable_name	Value
Handler_update	3
DROP TABLE t1;