<?php

  /**
   * Class to handle specific PostgreSQL commands
   *
   * @author Peter Verhage (peter@ibuildings.nl)
   * @version $Revision: 4.4 $
   *
   * $Id: class.atkpgsqlquery.inc,v 4.4 2001/10/26 11:59:03 ivo Exp $
   *
   */
  class atkpgsqlquery extends atkquery
  {
    /**
     * Makes a join SQL query for PostgreSQL
     * @param $table the table name
     * @param $alias alias for the table
     * @param $condition join condition
     */ 
    function addJoin($table, $alias, $condition, $outer)
    {
      if ($outer) 
      {
        $join="LEFT JOIN ";
      }
      else 
      {
        $join="JOIN ";
      }
      $this->m_joins[]= " ".$join.$table." ".$alias." ON ".$condition." ";
    }
  }

?>
