revert r77271 since it was an expensive fix to a non-existant problem.
[lhc/web/wiklou.git] / includes / db / Database.php
index 94b95fe..26d4d2b 100644 (file)
@@ -596,14 +596,6 @@ abstract class DatabaseBase implements DatabaseType {
                return !preg_match( '/^(?:SELECT|BEGIN|COMMIT|SET|SHOW|\(SELECT)\b/i', $sql );
        }
 
-       /**
-        * Database specific translations like MySQL's UNIX_TIMESTAMP() to
-        * something the DB can use.
-        */
-       function translateSQLFunctions( $vars ) {
-               return $vars;
-       }
-
        /**
         * Usually aborts on failure.  If errors are explicitly ignored, returns success.
         *
@@ -658,7 +650,7 @@ abstract class DatabaseBase implements DatabaseType {
                        } else {
                                $userName = '';
                        }
-                       $commentedSql = $this->translateSQLFunctions( preg_replace( '/\s/', " /* $fname $userName */ ", $sql, 1 ) );
+                       $commentedSql = preg_replace( '/\s/', " /* $fname $userName */ ", $sql, 1 );
                # } else {
                #       $commentedSql = $sql;
                # }