Pman/Roo.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 04:45:52 +0000 (12:45 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 04:45:52 +0000 (12:45 +0800)
Pman/Roo.php

index 9939266..634b146 100644 (file)
@@ -810,6 +810,8 @@ class Pman_Roo extends Pman
                         $ar = array();
                         break;
                     }
+                    // FIXME: note this is not typesafe for anything other than mysql..
+                    
                     if (!is_numeric($v) || !is_long($v)) {
                         $quote = true;
                     }
@@ -826,7 +828,8 @@ class Pman_Roo extends Pman
             
             
             if ($key[0] == '!' && in_array(substr($key, 1), array_keys($this->cols))) {
-                    
+                
+                
                 $x->whereAdd( $x->tableName() .'.' .substr($key, 1) . ' != ' .
                     (is_numeric($val) ? $val : "'".  $x->escape($val) . "'")
                 );