Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
197 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
SELECT @@MAX_STATEMENT_TIME; | ||
@@MAX_STATEMENT_TIME | ||
0.000000 | ||
SET STATEMENT MAX_STATEMENT_TIME=2 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=2 FOR SELECT SLEEP(3); | ||
SLEEP(3) | ||
1 | ||
SHOW STATUS LIKE "max_statement_time_exceeded"; | ||
Variable_name Value | ||
Max_statement_time_exceeded 1 | ||
SELECT @@MAX_STATEMENT_TIME; | ||
@@MAX_STATEMENT_TIME | ||
0.000000 | ||
set statement default_master_connection=default for select 1; | ||
ERROR 42000: The system variable default_master_connection cannot be set in SET STATEMENT. | ||
set statement default_master_connection=default for select 1; | ||
ERROR 42000: The system variable default_master_connection cannot be set in SET STATEMENT. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--source include/not_embedded.inc | ||
|
||
# | ||
# statement timeout | ||
# | ||
SELECT @@MAX_STATEMENT_TIME; | ||
SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(1); | ||
SHOW STATUS LIKE "max_statement_time_exceeded"; | ||
SET STATEMENT MAX_STATEMENT_TIME=2 FOR SELECT SLEEP(3); | ||
SHOW STATUS LIKE "max_statement_time_exceeded"; | ||
SELECT @@MAX_STATEMENT_TIME; | ||
|
||
--error ER_SET_STATEMENT_NOT_SUPPORTED | ||
set statement default_master_connection=default for select 1; | ||
--error ER_SET_STATEMENT_NOT_SUPPORTED | ||
set statement default_master_connection=default for select 1; | ||
|