Skip to content

Bugs with postgres #16

@bastienEichenberger

Description

@bastienEichenberger

Hi all,

I have a lots of bugs with postgres. The problem come from the boolean type:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type boolean: ""

If I replace true argument with 0 it's works! For example:
public function findAllTopicsStickiedByBoardId($boardId, $canViewDeletedTopics = false)
// $params = array(':boardId' => $boardId, ':isSticky' => true); // this ligne throw an exeption
// if we replace true -> 0 its work
$params = array(':boardId' => $boardId, ':isSticky' => 0);

Can anyone tell me how to solve this problem? I can replace all boolean with 0/1 but I would like to find the best way to solve this problem…

Thanks!

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