From cdb3ba067a6be47a95b34cc50f2167d6e6bf083d Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 25 Aug 2009 21:30:03 -0400 Subject: [PATCH] another place we need to use table aliases --- framework/Rdo/lib/Horde/Rdo/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Rdo/lib/Horde/Rdo/Query.php b/framework/Rdo/lib/Horde/Rdo/Query.php index e6b1f9e31..f252b98b9 100644 --- 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->tableAlias . '.' . $field] = new Horde_Rdo_Query_Literal($m2->table . '.' . $matches[1]); } else { - $q[$m1->table . '.' . $field] = $value; + $q[$m1->tableAlias . '.' . $field] = $value; } } -- 2.11.0