Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy