Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  show.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[160] ABAP[99] VDM[80]} [Methode: maximale Elemente, drei Dimensionen]

--echo #
--echo # MDEV-9538 Server crashes in check_show_access on SHOW STATISTICS
--echo # MDEV-9539 Server crashes in make_columns_old_format on SHOW GEOMETRY_COLUMNS
--echo # MDEV-9540 SHOW SPATIAL_REF_SYS and SHOW SYSTEM_VARIABLES return empty results with numerous warnings
--echo #
--error ER_PARSE_ERROR
show statistics;
--error ER_PARSE_ERROR
show spatial_ref_sys
--error ER_PARSE_ERROR
show system_variables;
--error ER_PARSE_ERROR
show geometry_columns;
--error ER_PARSE_ERROR
show nonexistent;

--echo #
--echo # MDEV-21603 Crashing SHOW TABLES with derived table in WHERE condition
--echo #
create table t1 (nm varchar(32), a int);
insert t1 values ('1',1),('2',2),('3',3);

show tables
  where tables_in_test in (select *
                              from (select nm from test.t1 group by nm) dt);
show fields from test.t1
   where field in (select * from (select nm from test.t1 group by nm) dt);
insert t1 values ('nm',0);
show fields from test.t1
   where field in (select * from (select nm from test.t1 group by nm) dt);

show fields from test.t1 where field in
        (select * from (select column_name from information_schema.columns
                          where table_name='t1' group by column_name) dt);
drop table t1;

--echo #
--echo # MDEV-4621 select returns null for information_schema.statistics.collation field
--echo #
create table t1 (f varchar(64), key(f));
select index_name, column_name, collation, cardinality from information_schema.STATISTICS where table_schema='test' and table_name='t1';
select index_name, column_name, collation from information_schema.STATISTICS where table_schema='test' and table_name='t1';
drop table t1;

--echo #
--echo # End of 10.2 tests
--echo #

--echo #
--echo # MDEV-28253 Mysqldump - INVISIBLE column error
--echo #
create table t1 (a int, b datetime invisible on update now() without system versioning) with system versioning;
desc t1;
drop table t1;

--echo #
--echo # End of 10.3 tests
--echo #

--echo #
--echo # MDEV-31721: Cursor protocol increases the counter of  "Empty_queries" for select
--echo #

FLUSH STATUS;

CREATE TABLE t1 (a INT);
INSERT INTO t1 VALUES (1);

--disable_ps2_protocol
SELECT COUNT(*) FROM t1;
SELECT * FROM t1;
SELECT * FROM t1 LIMIT 0;
--enable_ps2_protocol

SHOW STATUS LIKE "Empty_queries";

DROP TABLE t1;

--echo #------------------------------

CREATE TABLE t1 (a INT);
CREATE TABLE t2 (b INT);
INSERT INTO t1 VALUES (1);
INSERT INTO t2 VALUES (2);

--disable_ps2_protocol
SELECT * FROM t1 UNION SELECT * FROM t2;
SELECT * FROM t1 UNION SELECT * FROM t2 LIMIT 0;
--enable_ps2_protocol

SHOW STATUS LIKE "Empty_queries";

DROP TABLE t1, t2;

--echo #
--echo # MDEV-32266 All queries in stored procedures increment empty_queries counter
--echo #

show status like "Empty_queries";

CREATE TABLE t1 (id INT);
insert into t1 values (1),(2);

DELIMITER $$;
CREATE PROCEDURE proc1 (OUT cnt INT, id_var int)
BEGIN
SELECT COUNT(*) INTO cnt FROM t1 where id=id_var;
END$$
CREATE PROCEDURE proc2 (id_var int)
BEGIN
declare cnt int;
SELECT id INTO cnt FROM t1 where id=id_var;
END$$
DELIMITER ;$$
create function f1(x int) returns int return (x in ((select id from t1 where id <= 4)));

flush status;
show status like "Empty_queries";

# These should not increase empty queries
CALL proc1(@cnt,1);
CALL proc1(@cnt,3);
CALL proc2(1);
select f1(1);
select f1(8);
show status like "Empty_queries";

# These should increase empty queries
CALL proc2(4);
show status like "Empty_queries";

drop procedure proc1;
drop procedure proc2;
drop function f1;
drop table t1;

--echo # End of 10.11 tests

[Dauer der Verarbeitung: 0.20 Sekunden, vorverarbeitet 2026-10-08]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126864
#Domains=1897691