projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add support for one-dimensional arrays; type input parameters
[m6w6/pq-gateway]
/
lib
/
pq
/
Query
/
Expressible.php
diff --git
a/lib/pq/Query/Expressible.php
b/lib/pq/Query/Expressible.php
index ffcf7c2c0f0936d0b693ece11846b85261492156..dc2db66fdfffacd62ad9bfaca65fb58850d2c167 100644
(file)
--- a/
lib/pq/Query/Expressible.php
+++ b/
lib/pq/Query/Expressible.php
@@
-63,10
+63,12
@@
class Expressible implements ExpressibleInterface
} elseif (!isset($op) && is_numeric($data)) {
$this->data->add(new Expr("+ $data"));
} else {
} 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;
$this->data->add(new Expr("%s %s", isset($op) ? $op : "||", $data));
}
return $this;
- }
-}
\ No newline at end of file
+ }
+}