Skip to content

Query blocked by guardrails

An approval or password prompt pauses execution until you authorize the operation under the connection’s Query Protection setting.

The prompt can show:

Query Approval Required
Password Required
Incorrect 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”
  1. Confirm the connection and database in use.
  2. Review every statement, including the conditions on updates and deletions.
  3. Click Cancel if you need to change the SQL.
  4. Click Execute only when the whole operation matches your intent.

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.

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.

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.

Record the protection mode, prompt text, and action that opened it for a support report. Use synthetic SQL for the reproduction.