From: Chuck Hagenbuch Date: Wed, 26 Aug 2009 01:30:03 +0000 (-0400) Subject: another place we need to use table aliases X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=cdb3ba067a6be47a95b34cc50f2167d6e6bf083d;p=horde.git another place we need to use table aliases --- 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; } }