Don't use AS for table aliases (Bug #9151)
authorChuck Hagenbuch <chuck@horde.org>
Mon, 2 Aug 2010 01:14:57 +0000 (21:14 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 2 Aug 2010 01:14:57 +0000 (21:14 -0400)
framework/Rdo/lib/Horde/Rdo/Query.php

index 26f6502..4eea2f7 100644 (file)
@@ -367,7 +367,7 @@ class Horde_Rdo_Query
                 }
             }
 
-            $sql .= ' ' . $relationship['join_type'] . ' ' . $relationship['table'] . ' AS ' . $tableAlias . ' ON ' . implode(' AND ', $relsql);
+            $sql .= ' ' . $relationship['join_type'] . ' ' . $relationship['table'] . ' ' . $tableAlias . ' ON ' . implode(' AND ', $relsql);
         }
     }