Skip to content

fix(errors): a missing column is not reported as a missing table (#1310) - #1324

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1310-column-not-found
Oct 10, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/1310-column-not-found

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1310

Problem: mapDatabaseError mapped relation "([^"]+)" does not exist to Table "t" does not exist. Check the table name and schema. PostgreSQL's message for a missing column in an INSERT / UPDATE is column "x" of relation "t" does not exist, which contains that text, so the user was told the table was missing when only the column was.

Fix: new ColumnNotFoundException (column and table names); _columnMatch is checked before the table patterns and covers column "x" of relation "t", column "x" does not exist (PostgreSQL), Unknown column 'x' (MySQL) and no such column: x (SQLite). Message: Column "x" does not exist in "t", hint: check the name or refresh the object tree.

Tests: the INSERT form is a column error with both names and not a table error; the three engines' wordings without a table; relation "orders" does not exist is still a missing table.

PostgreSQL words a missing INSERT/UPDATE column as
column "x" of relation "t" does not exist; the relation pattern
matched it and the user read Table "t" does not exist for a table that
exists. Missing columns (PostgreSQL, MySQL, SQLite) are their own error,
checked before the table patterns.
@github-actions github-actions Bot added bug Something isn't working error-handling Theme parser epic label: error-handling ux User experience, keyboard shortcuts and interactions P3 Low priority / Polish & Enhancements labels Oct 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit a4c88eb into dev Oct 10, 2026
15 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the fix/1310-column-not-found branch October 11, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working error-handling Theme parser epic label: error-handling P3 Low priority / Polish & Enhancements ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant