Author: jwage
Date: 2008-08-26 00:29:21 +0100 (Tue, 26 Aug 2008)
New Revision: 4810

Modified:
   branches/1.0/lib/Doctrine/Expression/Driver.php
Log:
fixes #1364


Modified: branches/1.0/lib/Doctrine/Expression/Driver.php
===================================================================
--- branches/1.0/lib/Doctrine/Expression/Driver.php     2008-08-25 23:21:31 UTC 
(rev 4809)
+++ branches/1.0/lib/Doctrine/Expression/Driver.php     2008-08-25 23:29:21 UTC 
(rev 4810)
@@ -740,7 +740,6 @@
      *
      * @param string $value 
      * @return void
-     * @author Jonathan H. Wage
      */
     public function cos($value)
     {
@@ -748,6 +747,18 @@
     }
 
     /**
+     * coalesce
+     *
+     * @return string
+     */
+    public function coalesce()
+    {
+        $args = func_get_args();
+
+           return 'COALESCE(' . join(', ', (array) $args) . ')';
+    }
+
+    /**
      * __call
      *
      * for all native RDBMS functions the function name itself is returned


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to