/usr/local/miolo2/classes/database/postgres/msqljoin.class

Go to the documentation of this file.
00001 <?
00006 class PostgresSqlJoin extends MSqlJoin
00007 {
00008 
00018     function _sqlJoin($sql)
00019     {
00020         $cond = '';
00021 
00022         if(is_array($sql->join))
00023         {
00024             foreach ($sql->join as $join)
00025             {
00026                 if ($cond != '')
00027                 {
00028                     $cond = "($cond " . $join[3] . " JOIN $join[1] ON ($join[2]))";
00029                 }
00030                 else
00031                 {
00032                     $cond = "($join[0] " . $join[3] . " JOIN $join[1] ON ($join[2]))";
00033                 }
00034             }
00035         }
00036         else
00037         {
00038             $cond = $sql->join;
00039         }
00040 
00041         $sql->SetTables($cond);
00042     }
00043 }
00044 ?>
CopyLeft (L) 2001-2006 - [MIOLO Development Team] SOLIS - Cooperativa de Soluções Livres - Lajeado/RS - Brasil