From 15cdde74d3ee291db1f8b2977dbf0dd498337b74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Mon, 27 Aug 2012 13:33:24 +0200 Subject: [PATCH] return standard SQL values (sqlite3 understands CURRENT_...) --- lib/MDB2/Driver/Function/sqlite3.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/MDB2/Driver/Function/sqlite3.php b/lib/MDB2/Driver/Function/sqlite3.php index 1af262fd7a..790bd0e747 100644 --- a/lib/MDB2/Driver/Function/sqlite3.php +++ b/lib/MDB2/Driver/Function/sqlite3.php @@ -55,12 +55,12 @@ class MDB2_Driver_Function_sqlite3 extends MDB2_Driver_Function_Common { switch ($type) { case 'time': - return 'time(\'now\')'; + return 'CURRENT_TIME'; case 'date': - return 'date(\'now\')'; + return 'CURRENT_DATE'; case 'timestamp': default: - return 'datetime(\'now\')'; + return 'CURRENT_TIMESTAMP'; } }