boolean parsing updated
This commit is contained in:
parent
e80b339d7f
commit
ee8c1a0a6d
@ -87,10 +87,8 @@ abstract class Doctrine_Query_Condition extends Doctrine_Query_Part
|
|||||||
// check that value isn't a string
|
// check that value isn't a string
|
||||||
if (strpos($value, '\'') === false) {
|
if (strpos($value, '\'') === false) {
|
||||||
// parse booleans
|
// parse booleans
|
||||||
if ($value == 'true')
|
$value = $this->query->getConnection()
|
||||||
$value = 1;
|
->dataDict->parseBoolean($value);
|
||||||
elseif ($value == 'false')
|
|
||||||
$value = 0;
|
|
||||||
|
|
||||||
$a = explode('.', $value);
|
$a = explode('.', $value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user