projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17e221c
)
another place we need to use table aliases
author
Chuck Hagenbuch
<chuck@horde.org>
Wed, 26 Aug 2009 01:30:03 +0000
(21:30 -0400)
committer
Chuck Hagenbuch
<chuck@horde.org>
Wed, 26 Aug 2009 01:30:03 +0000
(21:30 -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
e6b1f9e
..
f252b98
100644
(file)
--- a/
framework/Rdo/lib/Horde/Rdo/Query.php
+++ b/
framework/Rdo/lib/Horde/Rdo/Query.php
@@
-469,9
+469,9
@@
class Horde_Rdo_Query
foreach (array_keys($query) as $field) {
$value = $query[$field];
if (preg_match('/^@(.*)@$/', $value, $matches)) {
- $q[$m1->table . '.' . $field] = new Horde_Rdo_Query_Literal($m2->table . '.' . $matches[1]);
+ $q[$m1->table
Alias
. '.' . $field] = new Horde_Rdo_Query_Literal($m2->table . '.' . $matches[1]);
} else {
- $q[$m1->table . '.' . $field] = $value;
+ $q[$m1->table
Alias
. '.' . $field] = $value;
}
}