Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/main/     Datei vom 1.9.2026 mit Größe 845 B image not shown  

Quelle  set_statement_notembedded.result   Sprache: Lisp

 

SELECT @@MAX_STATEMENT_TIME;
@@MAX_STATEMENT_TIME
0.000000
SET STATEMENT MAX_STATEMENT_TIME=3 FOR SELECT SLEEP(1);
SLEEP(1)
0
SHOW STATUS LIKE "max_statement_time_exceeded";
Variable_name Value
Max_statement_time_exceeded 0
SET STATEMENT MAX_STATEMENT_TIME=1 FOR SELECT SLEEP(10);
ERROR 70100: Query was interrupted: execution time limit 1.0 sec exceeded
SHOW STATUS LIKE "max_statement_time_exceeded";
Variable_name Value
Max_statement_time_exceeded 1
SELECT @@MAX_STATEMENT_TIME;
@@MAX_STATEMENT_TIME
0.000000
#
# MDEV-31209 Queries with window functions do not obey KILL / max_statement_time
#
create table t (i int);
insert into t values(1),(2),(3);
set statement max_statement_time=0.03 for select max(sleep(0.1)) over( ) from t;
ERROR 70100: Query was interrupted: execution time limit 0.03 sec exceeded
drop table t;
# End of 10.11 tests

Messung
CHZG
100100100100

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland