projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e26ea70
)
Add support for NOT IN queries to Horde_Rdo_Query
author
Chuck Hagenbuch
<chuck@horde.org>
Fri, 27 Aug 2010 00:58:24 +0000
(20:58 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Fri, 27 Aug 2010 00:58:24 +0000
(20:58 -0400)
framework/Rdo/lib/Horde/Rdo/Query.php
patch
|
blob
|
history
diff --git
a/framework/Rdo/lib/Horde/Rdo/Query.php
b/framework/Rdo/lib/Horde/Rdo/Query.php
index
4eea2f7
..
12044b7
100644
(file)
--- a/
framework/Rdo/lib/Horde/Rdo/Query.php
+++ b/
framework/Rdo/lib/Horde/Rdo/Query.php
@@
-390,7
+390,7
@@
class Horde_Rdo_Query
if ($test['value'] instanceof Horde_Rdo_Query_Literal) {
$clauses[] = $clause . ' ' . (string)$test['value'];
} else {
- if (
$test['test'] == 'IN'
&& is_array($test['value'])) {
+ if (
($test['test'] == 'IN' || $test['test'] == 'NOT IN')
&& is_array($test['value'])) {
$clauses[] = $clause . '(?' . str_repeat(',?', count($test['value']) - 1) . ')';
$bindParams = array_merge($bindParams, array_values($test['value']));
} else {