Skip to content
Browse files

Merge branch 'master' of github.com:chrishoult/helios

  • Loading branch information...
2 parents 759ba83 + 5e6c278 commit a398bd95964bcd28019da5a6b57c7bff5cb34fb4 Chris Hoult committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Helios/HQL.php
View
3 lib/Helios/HQL.php
@@ -202,6 +202,9 @@ private function getWhereQuery( $where, $params )
// replace not equal
$where = preg_replace( '/([\w\d-_]*)\s?!=\s?\?/', '(*:* -$1:"?")', $where );
+ // replace to
+ $where = preg_replace( '/([\w\d-_]*)\s?=\s?\? TO ?\?/', '$1:["?" TO "?"]', $where );
+
// replace equal
$where = preg_replace( '/([\w\d-_]*)\s?=\s?\?/', '$1:"?"', $where );

0 comments on commit a398bd9

Please sign in to comment.
Something went wrong with that request. Please try again.