feat: implement statement/execution timeout session variable (#4792)

* support set and show on statement/execution timeout session variables.

* implement statement timeout for mysql read, and postgres queries

* add mysql test with max execution time
This commit is contained in:
Lanqing Yang
2024-11-14 22:19:39 -08:00
committed by GitHub
parent 42bf7e9965
commit cdba7b442f
13 changed files with 330 additions and 17 deletions
+9
View File
@@ -72,3 +72,12 @@ DROP TABLE phy;
DROP TABLE system_metrics;
DROP TABLE foo;
-- SQLNESS PROTOCOL MYSQL
SET MAX_EXECUTION_TIME = 2000;
-- SQLNESS PROTOCOL MYSQL
SHOW VARIABLES MAX_EXECUTION_TIME;
-- SQLNESS PROTOCOL MYSQL
SET MAX_EXECUTION_TIME = 0;