Skip to content

[DoctrineBridge] Ulid on Postgres throws error on insert #38599

Closed
@KDederichs

Description

@KDederichs

Symfony version(s) affected: 5.2.0

Description
I tried to insert an ULID into a Postgres database but uppon doing so it will error out like this:
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type uuid: "01EMRHA3S6SZRG41BKZEAKCRVE"

How to reproduce
Insert a ULID into a Postgres Database

Possible Solution
Seems like it's not happy with the format. If you insert it with toRfc4122 it works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions