You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 1.3.0 this PHQL query that used to work properly, doesn't now :
<?php$di = new \Phalcon\DI\FactoryDefault();
class X extends \Phalcon\DI\Injectable
{
publicfunctionx()
{
$manager = $this->getDI()->getModelsManager();
$manager->executeQuery("SELECT id FROM Article WHERE CAST(mycolumn AS date)='2014-02-01'");
}
}
$x = newX;
$x->setDI($di);
$x->x();
Hello,
Since 1.3.0 this PHQL query that used to work properly, doesn't now :
This produces this PDO query :
I tested with another SQL function as CONVERT and it produces exactly the same issue.
I don't know if it is important or not, but my RDBMS is PostgreSql.
I have opened a discussion about this issue in the forum by the way ( http://forum.phalconphp.com/discussion/1863/phql-wrong-conversion-of-cast-and-convert-method-maybe-more- )
Thanks a lot !
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: