Skip to content

PR #2268 for Mojo::Promise leads to regression with Mojo::Pg::Database #2276

Description

@zaucker

The pull request #2268 breaks the async methods insert_p, update_p, select_p, delete_p in one of our Mojolicious based applications.

The symptom is an error like

DBD::Pg::st fetchrow_hashref failed: no statement executing at /home/zaucker/checkouts/hin/hin-cred-mgr/hin-cred-mgr/t/../thirdparty/lib/perl5/Mojo/Pg/Results.pm line 22.

e.g. when doing something like

await $res = insert_p('table', \%fields, { returning => 'id });

I verified this with Mojo::Promise from v9.41 (working) and with the patch for AWAIT_ON_READY applied (breaking).

I will try create a small test program for this, but wanted to submit this issue before this already merged patch gets in the potential 9.42.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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