~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/errors.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
INSERT INTO t1 SELECT b FROM t1;
56
56
ERROR 42S22: Unknown column 'b' in 'field list'
57
57
DROP TABLE t1;
 
58
flush status;
 
59
drop table if exists t1, t2;
 
60
create table t1 (a int unique);
 
61
create table t2 (a int);
 
62
drop function if exists f1;
 
63
Warnings:
 
64
Note    1305    FUNCTION test.f1 does not exist
 
65
drop function if exists f2;
 
66
Warnings:
 
67
Note    1305    FUNCTION test.f2 does not exist
 
68
create function f1() returns int
 
69
begin
 
70
insert into t1 (a) values (1);
 
71
insert into t1 (a) values (1);
 
72
return 1;
 
73
end|
 
74
create function f2() returns int
 
75
begin
 
76
insert into t2 (a) values (1);
 
77
return 2;
 
78
end|
 
79
flush status;
 
80
select f1(), f2();
 
81
ERROR 23000: Duplicate entry '1' for key 'a'
 
82
show status like 'Com_insert';
 
83
Variable_name   Value
 
84
Com_insert      2
 
85
select * from t1;
 
86
a
 
87
1
 
88
select * from t2;
 
89
a
 
90
drop table t1;
 
91
drop table t2;
 
92
drop function f1;
 
93
drop function f2;