mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge svojtovich@bk-internal.mysql.com:/home/bk/mysql-5.0
into april.(none):/home/svoj/devel/mysql/BUG14945/mysql-5.0
This commit is contained in:
@ -4811,6 +4811,17 @@ begin
|
||||
declare x int;
|
||||
select id from t1 order by x;
|
||||
end|
|
||||
drop procedure if exists bug14945|
|
||||
create table t3 (id int not null auto_increment primary key)|
|
||||
create procedure bug14945() deterministic truncate t3|
|
||||
insert into t3 values (null)|
|
||||
call bug14945()|
|
||||
insert into t3 values (null)|
|
||||
select * from t3|
|
||||
id
|
||||
1
|
||||
drop table t3|
|
||||
drop procedure bug14945|
|
||||
create procedure bug16474_2(x int)
|
||||
select id from t1 order by x|
|
||||
call bug16474_1()|
|
||||
|
@ -5666,6 +5666,21 @@ begin
|
||||
select id from t1 order by x;
|
||||
end|
|
||||
|
||||
#
|
||||
# BUG#14945: Truncate table doesn't reset the auto_increment counter
|
||||
#
|
||||
--disable_warnings
|
||||
drop procedure if exists bug14945|
|
||||
--enable_warnings
|
||||
create table t3 (id int not null auto_increment primary key)|
|
||||
create procedure bug14945() deterministic truncate t3|
|
||||
insert into t3 values (null)|
|
||||
call bug14945()|
|
||||
insert into t3 values (null)|
|
||||
select * from t3|
|
||||
drop table t3|
|
||||
drop procedure bug14945|
|
||||
|
||||
# This does NOT order by column index; variable is an expression.
|
||||
create procedure bug16474_2(x int)
|
||||
select id from t1 order by x|
|
||||
|
Reference in New Issue
Block a user