~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl_ndb/r/rpl_ndb_UUID.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
DROP PROCEDURE IF EXISTS test.p1;
 
8
DROP TABLE IF EXISTS test.t1;
 
9
CREATE TABLE test.t1 (a INT, blob_column LONGBLOB, vchar_column VARCHAR(100), PRIMARY KEY(a)) engine=NDB;
 
10
INSERT INTO test.t1  VALUES(1,UUID(),UUID());
 
11
create procedure test.p1()
 
12
begin
 
13
INSERT INTO test.t1  VALUES(2,UUID(),UUID());
 
14
INSERT INTO test.t1  VALUES(3,UUID(),UUID());
 
15
end|
 
16
CALL test.p1();
 
17
create function test.fn1(x int)
 
18
returns int
 
19
begin
 
20
insert into t1 values (4+x,UUID(),UUID());
 
21
insert into t1 values (5+x,UUID(),UUID());
 
22
return 0;
 
23
end|
 
24
select fn1(0);
 
25
fn1(0)
 
26
0
 
27
create table t2 (a int) engine=NDB;
 
28
insert into t2 values(fn1(2));
 
29
SHOW CREATE TABLE test.t1;
 
30
Table   Create Table
 
31
t1      CREATE TABLE `t1` (
 
32
  `a` int(11) NOT NULL DEFAULT '0',
 
33
  `blob_column` longblob,
 
34
  `vchar_column` varchar(100) DEFAULT NULL,
 
35
  PRIMARY KEY (`a`)
 
36
) ENGINE=ndbcluster DEFAULT CHARSET=latin1
 
37
DROP PROCEDURE test.p1;
 
38
DROP FUNCTION test.fn1;
 
39
DROP TABLE test.t1;
 
40
DROP TABLE test.t2;