3247
MySQLERRORNotableQuery ExecutionHIGH confidence
MAX_WAIT_TIMEOUT is not supported for this statement
Production Risk
Low — statement is rejected; use the correct timeout mechanism.
How to reproduce
trigger — this will error
trigger — this will error
SELECT /*+ MAX_EXECUTION_TIME(1000) */ * FROM t1;
expected output
ERROR 3247 (HY000): MAX_WAIT_TIMEOUT is not supported for this statement type.
Fix
Use supported timeout hint
Use supported timeout hint
SET SESSION MAX_EXECUTION_TIME=1000; SELECT * FROM t1;
Why this works
Set the session variable instead of using the hint for unsupported statement types.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3247 ER_UNSUPPORTED_MAX_WAIT_TIMEOUT
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev