-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugs with postgres #16
Comments
Same problem here. It seems to be described here: http://stackoverflow.com/questions/11413752/doctrine2-and-postgres-invalid-input-syntax-for-boolean |
@MMGT i am unable to work on this right now, would you be able to send a PR for this please? I have just started a new job so i don't have the time i used to have available to me. If not, i will probably get around to it, but it will take a week or so, maybe more, as i have a lot of other things to sort out. |
@MMGT I'm a beginner with symfony2 but I found a solution and now the bundle works fine with postgresql... I hope it helps. |
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!
The text was updated successfully, but these errors were encountered: