Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[doctrine-messenger] Error Oracle database lastInsertId() returned false #54193

Closed
@javiercno

Description

@javiercno

Symfony version(s) affected

6.4.4

Description

When insert symfony messenger message using doctrine-messenger in Oracle database, return lastInsertId() returned false, no id was returned.

symfony/doctrine-messenger@v6.4.3...v6.4.4#diff-dae291a1786531ebfa80b163d0f9e13e88f49ddf2a70d7f2b15335302e645684R453

How to reproduce

Install symfony messenger 6.4.4, config doctrine messenger transport and store new message.

This error already existed in previous versions. Oracle does not return lastInsertId, but PHP was passing 'false' to an empty string ''.

Now it's being handled in the if statement, so it throws an exception.

Possible Solution

No solution :(
doctrine dbal no support lastInsertId with oci8

https://github.com/doctrine/dbal/blob/3.8.x/src/Driver/OCI8/Connection.php#L118
https://github.com/doctrine/dbal/blob/4.0.x/src/Driver/OCI8/Connection.php#L88

Additional Context

No response

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