Skip to content

[BUG]: drizzle-kit pull fails silently on MySQL 5.7 because introspection queries information_schema.check_constraints #5921

@SevenJoker

Description

@SevenJoker

Report hasn't been filed before.

  • I have verified that the bug I'm about to report hasn't been filed before.

What version of drizzle-orm are you using?

0.45.2

What version of drizzle-kit are you using?

0.31.10

Other packages

No response

Describe the Bug

drizzle-kit pull fails on MySQL 5.7.26 even though the database connection is valid and table/column/index introspection succeeds. After local debugging, I found that MySQL introspection queries information_schema.check_constraints, but this table does not exist in MySQL 5.7, so the command fails with ER_UNKNOWN_TABLE: Unknown table 'check_constraints' in information_schema. The CLI then exits with code 1 without surfacing the real database error, which makes the failure look silent. This seems to be a MySQL 5.7 compatibility issue in pull, plus missing error reporting for the underlying query failure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions