Skip to content

Commit

Permalink
Allow hexadecimal literals in PHQL, fixes phalcon#10518
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutierrez committed Jun 25, 2015
1 parent 365cecd commit dbfef88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phalcon/mvc/model/query.zep
Original file line number Diff line number Diff line change
Expand Up @@ -521,10 +521,13 @@ class Query implements QueryInterface, InjectionAwareInterface

case PHQL_T_INTEGER:
case PHQL_T_DOUBLE:
case PHQL_T_HINTEGER:
let exprReturn = ["type": "literal", "value": expr["value"]];
break;

case PHQL_T_HINTEGER:
let exprReturn = ["type": "literal", "value": "0" . expr["value"]];
break;

case PHQL_T_TRUE:
let exprReturn = ["type": "literal", "value": "TRUE"];
break;
Expand Down

0 comments on commit dbfef88

Please sign in to comment.