2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
8
<Begin test section 1 (non deterministic SP)>
9
---------------------------------------------
10
create table test.t1 (n MEDIUMINT NOT NULL AUTO_INCREMENT, f FLOAT, d DATETIME, PRIMARY KEY(n));
11
create procedure test.p1()
13
INSERT INTO test.t1 (f,d) VALUES (RAND(),NOW());
16
<End test section 1 (non deterministic SP)>
17
-------------------------------------------
18
CREATE TABLE test.t2 (a INT NOT NULL AUTO_INCREMENT, t CHAR(4), PRIMARY KEY(a));
19
CREATE PROCEDURE test.p2(n int)
23
UPDATE test.t2 set t ='Tex';
25
UPDATE test.t2 set t ='SQL';
27
UPDATE test.t2 set t ='NONE';
30
INSERT INTO test.t2 VALUES(NULL,'NEW'),(NULL,'NEW'),(NULL,'NEW'),(NULL,'NEW');
31
SELECT * FROM t2 ORDER BY a;
37
SELECT * FROM t2 ORDER BY a;
44
SELECT * FROM t2 ORDER BY a;
50
SELECT * FROM t2 ORDER BY a;
57
SELECT * FROM t2 ORDER BY a;
63
SELECT * FROM t2 ORDER BY a;
70
SELECT * FROM t2 ORDER BY a;
76
SELECT * FROM t2 ORDER BY a;
82
DROP PROCEDURE test.p1;
83
DROP PROCEDURE test.p2;