Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -597,14 +597,6 @@ |
598 | 598 | } |
599 | 599 | |
600 | 600 | /** |
601 | | - * Database specific translations like MySQL's UNIX_TIMESTAMP() to |
602 | | - * something the DB can use. |
603 | | - */ |
604 | | - function translateSQLFunctions( $vars ) { |
605 | | - return $vars; |
606 | | - } |
607 | | - |
608 | | - /** |
609 | 601 | * Usually aborts on failure. If errors are explicitly ignored, returns success. |
610 | 602 | * |
611 | 603 | * @param $sql String: SQL query |
— | — | @@ -658,7 +650,7 @@ |
659 | 651 | } else { |
660 | 652 | $userName = ''; |
661 | 653 | } |
662 | | - $commentedSql = $this->translateSQLFunctions( preg_replace( '/\s/', " /* $fname $userName */ ", $sql, 1 ) ); |
| 654 | + $commentedSql = preg_replace( '/\s/', " /* $fname $userName */ ", $sql, 1 ); |
663 | 655 | # } else { |
664 | 656 | # $commentedSql = $sql; |
665 | 657 | # } |
Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -364,15 +364,6 @@ |
365 | 365 | } |
366 | 366 | |
367 | 367 | /** |
368 | | - * Database specific translations like MySQL's UNIX_TIMESTAMP() to |
369 | | - * something the DB can use. |
370 | | - */ |
371 | | - function translateSQLFunctions( $vars ) { |
372 | | - return preg_replace( '/UNIX_TIMESTAMP\(([^()]+)\)/', 'strftime("%s",\1)', $vars ); |
373 | | - } |
374 | | - |
375 | | - |
376 | | - /** |
377 | 368 | * Based on generic method (parent) with some prior SQLite-sepcific adjustments |
378 | 369 | */ |
379 | 370 | function insert( $table, $a, $fname = 'DatabaseSqlite::insert', $options = array() ) { |