Skip to content
Browse files

Parse numeric values

  • Loading branch information...
1 parent 6d9b4f9 commit 72b595ef4fa5f73409c97961cc0453ba7f58f03b @archwisp committed Jun 8, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 Dbms/Schema/Adapter/ToSql/Package/AbstractQuery.php
View
3 Dbms/Schema/Adapter/ToSql/Package/AbstractQuery.php
@@ -253,6 +253,9 @@ private function _buildWhereConditions(MindFrame2_Dbms_Query $query)
{
$value = $this->runMacro($value);
}
+ if(!is_numeric($value)){
+ $value=sprintf('\'%s\'',$value);
+ }
$sql[] = sprintf('%s %s %s', $alias, $condition->Operation, $value);
}

0 comments on commit 72b595e

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