[DBAL-480] [GH-296] PDO bug workaround Created: 02/Apr/13  Updated: 11/Sep/13  Resolved: 09/May/13

Status: Resolved
Project: Doctrine DBAL
Component/s: None
Affects Version/s: None
Fix Version/s: None
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Won't Fix Votes: 0
Labels: None


This issue is created automatically through a Github pull request on behalf of dasmfm:

Url: https://github.com/doctrine/dbal/pull/296


In combination of PHP 5.4 and Doctrine 2 (upto 2.4Beta1) there's a bug with "boolean" type of field.
Ref link:��http://stackoverflow.com/questions/10242312/pdo-bindvalue-with-pdoparam-bool-causes-statement-execute-to-fail-silently

This patch binds int instead of bool and everything goes working fine.

Comment by Doctrine Bot [ 09/May/13 ]

A related Github Pull-Request [GH-296] was closed:

Comment by Benjamin Eberlei [ 09/May/13 ]

Not fixing PHP bugs or adding workarounds.

You need to pass an integer (1 or 0) instead of a boolean to make it working. This is how we do it in the ORM.

Comment by Doctrine Bot [ 11/Sep/13 ]

A related Github Pull-Request [GH-296] was closed:

Generated at Wed Nov 25 17:28:31 EST 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.