~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/handler_update.result

  • Committer: Stewart Smith
  • Date: 2010-06-16 14:23:07 UTC
  • mto: (1626.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1633.
  • Revision ID: stewart@flamingspork.com-20100616142307-xzid4yzriltwu6tt
add basic test for Handler_update status variable

Show diffs side-by-side

added added

removed removed

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