Query blocked by guardrails
An approval or password prompt pauses execution until you authorize the operation under the connection’s Query Protection setting.
Symptoms
Section titled “Symptoms”The prompt can show:
Query Approval RequiredPassword RequiredIncorrect password. Please try again.These prompts appear before database execution. A server rejection after approval belongs in database error codes.
Quick checks for a query blocked by guardrails
Section titled “Quick checks for a query blocked by guardrails”- Confirm the connection and database in use.
- Review every statement, including the conditions on updates and deletions.
- Click Cancel if you need to change the SQL.
- Click Execute only when the whole operation matches your intent.
A read query asks for approval
Section titled “A read query asks for approval”Confirm All requires approval for reads as well as writes. Password Required requires a password for every query.
In Safe Mode, SQL with unknown effects requires approval. A batch beginning with SELECT can still contain later statements that change data.
Check Query Protection in the toolbar. See the mode reference before changing the saved setting.
A structure action still asks for confirmation
Section titled “A structure action still asks for confirmation”Schema changes made through app controls require at least confirmation, including with No Protection. This protects actions such as creating, renaming, or dropping database objects.
Read the proposed SQL and confirm only the intended change. See change structure for the review flow.
Password verification fails
Section titled “Password verification fails”Expand View Query to inspect the SQL in the password prompt. Enter this connection’s database password, rather than an SSH password or your Mac login password.
TableAI checks against the password available for the connection. For Ask every time, it uses the current session’s password. If the connection has no password, use Confirm All when you want approval without password verification.
If the database itself rejects the login, follow connection failed.
An AI action refuses a write
Section titled “An AI action refuses a write”The database agent and grid Ask AI enforce read-only rules separately from Query Protection. Changing the protection mode does not authorize those tools to write.
Review proposed changes in the SQL editor. When you execute them yourself, the connection’s guardrails apply. See Agent mode for the database agent’s actions.
Still stuck
Section titled “Still stuck”Record the protection mode, prompt text, and action that opened it for a support report. Use synthetic SQL for the reproduction.