Skip to content

[dbal] message is not added to the queue #731

Closed

Description

@otzy

I use dbal package 0.9.6 with mysql.
producer->send() does not add a record to the queue.

$this->context->getDbalConnection()->insert() in DbalProducer.php:118 returns 0 but no any exception thrown.

But if I comment out the third parameter with types, the message is added successfully.
The problem seems to be in the parameter 'redelivered' => Type::BOOLEAN,
When it's changed to 'redelivered' => Type::SMALLINT, everything works

Activity

  1. otzy commented on Jan 18, 2019

    @otzy
    ContributorAuthor

    I think it's also worth to check that insert() returned 1 and throw an exception otherwise.

    And btw. it will be nice if you inherited all your exceptions from RuntimeException. Most of them I think caused by the wrong usage of library and there is no need to catch them in the app

  2. makasim commented on Jan 18, 2019

    @makasim
    Member

    that strange since there are some functional tests which pass.

    Would you like to submit a PR?

  3. changed the title [-]message is not added to the queue[/-] [+][dbal] message is not added to the queue[/+] on Jan 19, 2019
  4. otzy commented on Jan 21, 2019

    @otzy
    ContributorAuthor

    I created PR. Not sure if the destination is correct though

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

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