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

Go to the documentation of this file.
00001 <?
00002 class ODBCSqlJoin extends MSqlJoin
00003 {
00004 
00005     function _sqlJoin($sql)
00006     {
00007         $cond = '';
00008 
00009         foreach ($sql->join as $join)
00010         {
00011             if ($cond != '')
00012             {
00013                 $cond = "$cond " . $join[3] . " JOIN $join[1] ON ($join[2])";
00014             }
00015             else
00016             {
00017                 $cond = "$join[0] " . $join[3] . " JOIN $join[1] ON ($join[2])";
00018             }
00019         }
00020 
00021         $sql->SetTables($cond);
00022     }
00023 }
00024 ?>
CopyLeft (L) 2001-2006 - [MIOLO Development Team] SOLIS - Cooperativa de Soluções Livres - Lajeado/RS - Brasil