1
0
mirror of synced 2025-03-06 21:06:16 +03:00

#5987 inlined check for boolean 'true' literal

This commit is contained in:
Marco Pivetta 2016-11-26 05:22:43 +01:00
parent e2b198112e
commit 24da9061b9

View File

@ -2119,9 +2119,7 @@ class SqlWalker implements TreeWalker
return $this->conn->quote($literal->value);
case AST\Literal::BOOLEAN:
$bool = 'true' === strtolower($literal->value);
return $this->conn->getDatabasePlatform()->convertBooleans($bool);
return $this->conn->getDatabasePlatform()->convertBooleans('true' === strtolower($literal->value));
case AST\Literal::NUMERIC:
return $literal->value;