1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-02 14:22:51 +03:00

Post-merge fixes.

This commit is contained in:
unknown
2003-08-26 17:41:40 +02:00
parent 138f0adf2d
commit 55e776d145
17 changed files with 84 additions and 57 deletions

View File

@ -1248,10 +1248,10 @@ Variable_name Value
Qcache_queries_in_cache 0
show status like "Qcache_inserts";
Variable_name Value
Qcache_inserts 41
Qcache_inserts 1
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 13
Qcache_hits 1
/**/ select * from t1;
a
/**/ select * from t1;
@ -1261,8 +1261,8 @@ Variable_name Value
Qcache_queries_in_cache 1
show status like "Qcache_inserts";
Variable_name Value
Qcache_inserts 42
Qcache_inserts 2
show status like "Qcache_hits";
Variable_name Value
Qcache_hits 14
Qcache_hits 2
drop table t1;

View File

@ -29,10 +29,10 @@ drop table t1,t2;
CREATE TABLE t1 (
html varchar(5) default NULL,
rin int(11) default '0',
out int(11) default '0'
rout int(11) default '0'
) TYPE=MyISAM;
INSERT INTO t1 VALUES ('1',1,0);
SELECT DISTINCT html,SUM(out)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
SELECT DISTINCT html,SUM(rout)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
html prod
1 0.00
drop table t1;

View File

@ -35,7 +35,7 @@ call foo();
ERROR HY000: PROCEDURE foo does not exist
drop procedure if exists foo;
Warnings:
Warning 1272 PROCEDURE foo does not exist
Warning 1275 PROCEDURE foo does not exist
create procedure foo()
foo: loop
leave bar;

View File

@ -46,8 +46,6 @@ alter table t8 rename t7;
rename table t7 to t9;
drop table t1;
Got one of the listed errors
Warnings:
Note 1008 Can't drop database 'test_mysqltest'; database doesn't exist
Got one of the listed errors
Got one of the listed errors
Got one of the listed errors

View File

@ -311,7 +311,7 @@ set sql_log_bin=1;
set sql_log_off=1;
set sql_log_update=1;
Warnings:
Note 1282 The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
Note 1285 The update log is deprecated and replaced by the binary log. SET SQL_LOG_UPDATE has been ignored.
set sql_low_priority_updates=1;
set sql_max_join_size=200;
select @@sql_max_join_size,@@max_join_size;

View File

@ -38,11 +38,11 @@ drop table t1,t2;
CREATE TABLE t1 (
html varchar(5) default NULL,
rin int(11) default '0',
out int(11) default '0'
rout int(11) default '0'
) TYPE=MyISAM;
INSERT INTO t1 VALUES ('1',1,0);
SELECT DISTINCT html,SUM(out)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
SELECT DISTINCT html,SUM(rout)/(SUM(rin)+1) as 'prod' FROM t1 GROUP BY rin;
drop table t1;

View File

@ -32,18 +32,18 @@ create function func1() returns int
return 42|
# Can't create recursively
--error 1270
--error 1273
create procedure foo()
create procedure bar() set @x=3|
--error 1270
--error 1273
create procedure foo()
create function bar() returns double return 2.3|
# Already exists
--error 1271
--error 1274
create procedure proc1()
set @x = 42|
--error 1271
--error 1274
create function func1() returns int
return 42|
@ -51,32 +51,32 @@ drop procedure proc1|
drop function func1|
# Does not exist
--error 1272
--error 1275
alter procedure foo|
--error 1272
--error 1275
alter function foo|
--error 1272
--error 1275
drop procedure foo|
--error 1272
--error 1275
drop function foo|
--error 1272
--error 1275
call foo()|
drop procedure if exists foo|
# LEAVE/ITERATE with no match
--error 1275
--error 1278
create procedure foo()
foo: loop
leave bar;
end loop|
--error 1275
--error 1278
create procedure foo()
foo: loop
iterate bar;
end loop|
# Redefining label
--error 1276
--error 1279
create procedure foo()
foo: loop
foo: loop
@ -85,14 +85,14 @@ foo: loop
end loop foo|
# End label mismatch
--error 1277
--error 1280
create procedure foo()
foo: loop
set @x=2;
end loop bar|
# Referring to undef variable
--error 1278
--error 1281
create procedure foo(out x int)
begin
declare y int;
@ -106,17 +106,17 @@ begin
select name from mysql.proc;
select type from mysql.proc;
end|
--error 1279
--error 1282
call foo()|
drop procedure foo|
# RETURN in FUNCTION only
--error 1280
--error 1283
create procedure foo()
return 42|
# Doesn't allow queries in FUNCTIONs (for now :-( )
--error 1281
--error 1284
create function foo() returns int
begin
declare x int;
@ -130,13 +130,13 @@ create procedure p(x int)
create function f(x int) returns int
return x+42|
--error 1285
--error 1288
call p()|
--error 1285
--error 1288
call p(1, 2)|
--error 1285
--error 1288
select f()|
--error 1285
--error 1288
select f(1, 2)|
drop procedure p|