pgref.dev/sqlite/errors/SQLITE_FORMAT
SQLITE_FORMATINFOTier 1 — Safe⚠️ MEDIUM confidence

Auxiliary database format error (not used)

Category: InternalVersions: 3.0+

🔴 Production Risk Error

None — not returned by SQLite.

What this means

SQLITE_FORMAT (24) was historically used for auxiliary database (ATTACH) format errors but is no longer returned by any SQLite API. The code is kept for backwards compatibility.

Why it happens

  1. 1Not returned by modern SQLite — historical code.

How to reproduce

Not triggered by any current SQLite API. Historically related to ATTACH.

trigger — this will ERROR
# SQLITE_FORMAT (24) is not returned by SQLite 3.x APIs
# Kept for ABI compatibility only
Not applicable in modern SQLite.

Version notes

Sources

📚 Official docs: https://www.sqlite.org/rescode.html#format

🔧 Source ref: sqlite3.h — SQLITE_FORMAT = 24

Confidence assessment

⚠️ MEDIUM confidence

Stable — documented as unused.

See also

⚙️ This error reference was generated with AI assistance and reviewed for accuracy. Examples are provided to illustrate common scenarios and may not cover every case. Always test fixes in a development environment before applying to production. Spotted an error? Suggest a correction →