SQL/Parser/Compiler.php
authorAlan Knowles <alan@akkbhome.com>
Sun, 13 Feb 2011 15:15:40 +0000 (23:15 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 13 Feb 2011 15:15:40 +0000 (23:15 +0800)
SQL/Parser/Compiler.php

index a8fa8c3..ca1bda1 100755 (executable)
@@ -128,6 +128,8 @@ class SQL_Parser_Compiler
         
         for($i = 0; $i < count($where_clause['args']); $i+=2) {
             $sql = $where_clause['args'][$i]['column'] . 
+                ' ' .
+                $where_clause['ops'][floor($i/2)] .
                 ' ' .
                 $this->getWhereValue ($where_clause['args'][$i+1]);