Skip to content

Commit 97e8d27

Browse files
dmitryshulgavuvova
authored andcommitted
MDEV-16708: fix in test failures(added --enable_prepared_warnings/--disable_prepared_warnings)
1 parent fe78495 commit 97e8d27

37 files changed

+107
-6
lines changed

mysql-test/include/column_compression_syntax_varbinary.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ DROP TABLE t1;
2828
--echo # The following statements return deprecated syntax warnings
2929
--echo #
3030

31+
--enable_prepare_warnings
32+
3133
--eval CREATE TABLE t1 (a $type DEFAULT '' COMPRESSED)
3234
SHOW CREATE TABLE t1;
3335
DROP TABLE t1;
3436
--eval CREATE TABLE t1 (a $type NULL COMPRESSED)
3537
SHOW CREATE TABLE t1;
3638
DROP TABLE t1;
3739

40+
--disable_prepare_warnings
3841

3942
--echo #
4043
--echo # The following statements fail by the grammar,

mysql-test/include/column_compression_syntax_varchar.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ DROP TABLE t1;
5353
--echo # The following statements return deprecated syntax warnings
5454
--echo #
5555

56+
--enable_prepare_warnings
57+
5658
--eval CREATE TABLE t1 (a $type BINARY COMPRESSED)
5759
SHOW CREATE TABLE t1;
5860
DROP TABLE t1;
@@ -63,6 +65,7 @@ DROP TABLE t1;
6365
SHOW CREATE TABLE t1;
6466
DROP TABLE t1;
6567

68+
--disable_prepare_warnings
6669

6770
--echo #
6871
--echo # The following statements fail by the grammar,

mysql-test/suite/compat/oracle/t/sp-package-innodb.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ SELECT ENGINE FROM INFORMATION_SCHEMA.TABLES
99
WHERE TABLE_SCHEMA='test' AND TABLE_NAME='t1';
1010
INSERT INTO t1 VALUES (10,'none');
1111

12+
--enable_prepare_warnings
13+
1214
DELIMITER $$;
1315
CREATE PACKAGE pkg1 AS
1416
PROCEDURE p1;
@@ -58,5 +60,7 @@ ROLLBACK;
5860
SELECT * FROM t1 ORDER BY a;
5961
DELETE FROM t1;
6062

63+
--disable_prepare_warnings
64+
6165
DROP PACKAGE pkg1;
6266
DROP TABLE t1;

mysql-test/suite/compat/oracle/t/update_innodb.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ SET sql_mode='ORACLE';
88
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY) engine=innodb;
99
INSERT INTO t1 VALUES (1);
1010
START TRANSACTION;
11+
--enable_prepare_warnings
1112
SELECT a AS a_con1 FROM t1 INTO @a FOR UPDATE;
1213

1314
--connect(con2,localhost,root,,)
@@ -24,5 +25,7 @@ COMMIT;
2425
SELECT a AS con2 FROM t1;
2526
COMMIT;
2627

28+
--disable_prepare_warnings
29+
2730
--connection default
2831
DROP TABLE t1;

mysql-test/suite/engines/funcs/r/rpl_sp.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ select * from t2;
189189
a
190190
23
191191
connection master;
192-
drop function fn1;
192+
drop function fn1|
193193
create function fn1()
194194
returns int
195195
no sql

mysql-test/suite/funcs_1/include/innodb_tb2.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--disable_warnings
44
drop table if exists tb2 ;
55
--enable_warnings
6+
--enable_prepare_warnings
67
create table tb2 (
78
f59 numeric (0) unsigned,
89
f60 numeric (64) unsigned,
@@ -61,3 +62,4 @@ f109 set("1set","2set") not null default "1set"
6162
eval
6263
load data infile '$MYSQLTEST_VARDIR/std_data/funcs_1/innodb_tb2.txt'
6364
into table tb2;
65+
--disable_prepare_warnings

mysql-test/suite/funcs_1/include/innodb_tb4.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--disable_warnings
44
drop table if exists tb4;
55
--enable_warnings
6+
--enable_prepare_warnings
67
create table tb4 (
78
f176 numeric (0) unsigned not null DEFAULT 9,
89
f177 numeric (64) unsigned not null DEFAULT 9,
@@ -68,3 +69,4 @@ f241 char(100)
6869
eval
6970
load data infile '$MYSQLTEST_VARDIR/std_data/funcs_1/innodb_tb4.txt'
7071
into table tb4;
72+
--disable_prepare_warnings

mysql-test/suite/funcs_1/include/memory_tb2.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
--disable_warnings
44
drop table if exists tb2 ;
55
--enable_warnings
6+
7+
--enable_prepare_warnings
8+
69
create table tb2 (
710
f59 numeric (0) unsigned,
811
f60 numeric (64) unsigned,
@@ -61,3 +64,5 @@ f109 set("1set","2set") not null default "1set"
6164
eval
6265
load data infile '$MYSQLTEST_VARDIR/std_data/funcs_1/memory_tb2.txt'
6366
into table tb2 ;
67+
68+
--disable_prepare_warnings

mysql-test/suite/funcs_1/include/memory_tb4.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
--disable_warnings
44
drop table if exists tb4 ;
55
--enable_warnings
6+
--enable_prepare_warnings
67
create table tb4 (
78
f176 numeric (0) unsigned not null DEFAULT 9,
89
f177 numeric (64) unsigned not null DEFAULT 9,
@@ -67,3 +68,4 @@ f240 varchar(1200)
6768
eval
6869
load data infile '$MYSQLTEST_VARDIR/std_data/funcs_1/memory_tb4.txt'
6970
into table tb4;
71+
--disable_prepare_warnings

mysql-test/suite/handler/handler.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,13 +1293,15 @@ DROP TABLE IF EXISTS t1, t2;
12931293
DROP FUNCTION IF EXISTS f1;
12941294
--enable_warnings
12951295

1296+
--enable_prepare_warnings
12961297
delimiter |;
12971298
CREATE FUNCTION f1() RETURNS INTEGER
12981299
BEGIN
12991300
SELECT 1 FROM t2 INTO @a;
13001301
RETURN 1;
13011302
END|
13021303
delimiter ;|
1304+
--disable_prepare_warnings
13031305

13041306
# Get f1() parsed and cached
13051307
--error ER_NO_SUCH_TABLE

0 commit comments

Comments
 (0)