Skip to content

fix(errors): "column x of relation y does not exist" is reported as "Table y does not exist" #1310

Closed

Description

@ZhuchkaTriplesix

Problem

lib/core/database/database_error_mapper.dart:91 maps relation "([^"]+)" does not exist to TableNotFoundException. PostgreSQL's message for a missing column in an INSERT / UPDATE is column "x" of relation "t" does not exist, so the regexp captures t and the user reads Table "t" does not exist. Check the table name and schema... when the table exists and the column does not.

Scope

  • Match the column form first and map it to a column message (Column "x" does not exist in "t", hint: check the column name or refresh the tree), or leave it as the original text.
  • Anchor the relation pattern so it does not match inside the column form.
  • Tests in the mapper's test file for both messages, plus MySQL's Unknown column 'x' in 'field list'.

Acceptance

  • column "x" of relation "t" does not exist is not reported as a missing table.
  • relation "t" does not exist still is.

Activity

  1. added
    bugSomething isn't working
    error-handlingTheme parser epic label: error-handling
    uxUser experience, keyboard shortcuts and interactions
    P3Low priority / Polish & Enhancements
    on Oct 10, 2026
  2. added a commit that references this issue on Oct 10, 2026
  3. ZhuchkaTriplesix commented on Oct 10, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Сделано в #1324, смержено в dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3Low priority / Polish & EnhancementsbugSomething isn't workingerror-handlingTheme parser epic label: error-handlinguxUser experience, keyboard shortcuts and interactions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions