Changeset 4810

Show
Ignore:
Timestamp:
08/26/08 00:29:21 (5 months ago)
Author:
jwage
Message:

fixes #1364

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/lib/Doctrine/Expression/Driver.php

    r4252 r4810  
    741741     * @param string $value  
    742742     * @return void 
    743      * @author Jonathan H. Wage 
    744743     */ 
    745744    public function cos($value) 
    746745    { 
    747746        return 'COS(' . $value . ')'; 
     747    } 
     748 
     749    /** 
     750     * coalesce 
     751     * 
     752     * @return string 
     753     */ 
     754    public function coalesce() 
     755    { 
     756        $args = func_get_args(); 
     757 
     758            return 'COALESCE(' . join(', ', (array) $args) . ')'; 
    748759    } 
    749760