Author: jwage
Date: 2008-09-12 21:21:45 +0100 (Fri, 12 Sep 2008)
New Revision: 4958

Modified:
   branches/1.0/lib/Doctrine/Expression/Pgsql.php
Log:
fixes #1447


Modified: branches/1.0/lib/Doctrine/Expression/Pgsql.php
===================================================================
--- branches/1.0/lib/Doctrine/Expression/Pgsql.php      2008-09-12 20:00:11 UTC 
(rev 4957)
+++ branches/1.0/lib/Doctrine/Expression/Pgsql.php      2008-09-12 20:21:45 UTC 
(rev 4958)
@@ -219,4 +219,15 @@
         $match.= $this->patternEscapeString();
         return $match;
     }
+
+    /**
+     * return syntax for pgsql TRANSLATE() dbms function
+     *
+     * @return string $sql
+     */
+    public function translate($string, $from, $to)
+    {
+       $translate = 'TRANSLATE(' . $string . ', ' . $from . ', ' . $to . ')';
+       return $translate;
+    }
 }
\ No newline at end of file


--~--~---------~--~----~------------~-------~--~----~
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