add support for one-dimensional arrays; type input parameters
[m6w6/pq-gateway] / lib / pq / Query / Expressible.php
index ffcf7c2c0f0936d0b693ece11846b85261492156..dc2db66fdfffacd62ad9bfaca65fb58850d2c167 100644 (file)
@@ -63,10 +63,12 @@ class Expressible implements ExpressibleInterface
                } elseif (!isset($op) && is_numeric($data)) {
                        $this->data->add(new Expr("+ $data"));
                } else {
-                       $data = $this->row->getTable()->getConnection()->quote($data);
+                       if (!is_array($data)) {
+                               $data = $this->row->getTable()->getConnection()->quote($data);
+                       }
                        $this->data->add(new Expr("%s %s", isset($op) ? $op : "||", $data));
                }
                
                return $this;
-       }               
-}
\ No newline at end of file
+       }
+}