Skip to content

SQLite schema manager does not handle non-uppercase column types #7049

@27pchrisl

Description

@27pchrisl

Bug Report

Q A
Version 4.3.0
Previous Version if the bug is a regression <4.3.0

Summary

SQLite allows column definitions to have a type name in any casing and preserves the case. DBAL always uses uppercase type names, but introspecting a database from elsewhere causes introspectTable to error with the new regular expression introduced in 4.3.0.

7aa2fa5

Current behavior

Type names eg "Varchar" or "varchar" cause assertion errors.

Expected behavior

That a mixed case type name parses into the correct type.

How to reproduce

Regression test provided in the PR...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions