From 112422a2ca1632aa67c56d23519e6af1f41d597d Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 28 Jul 2012 12:07:46 +0100 Subject: [PATCH] time and timestamp are incompatible --- core/database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 7afca426..f9e4dabd 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -97,7 +97,7 @@ class PostgreSQL extends DBEngine { $data = str_replace("SCORE_BOOL_N", "'f'", $data); $data = str_replace("SCORE_BOOL", "BOOL", $data); $data = str_replace("SCORE_DATETIME", "TIMESTAMP", $data); - $data = str_replace("SCORE_NOW", "current_time", $data); + $data = str_replace("SCORE_NOW", "current_timestamp", $data); $data = str_replace("SCORE_STRNORM", "lower", $data); $data = str_replace("SCORE_ILIKE", "ILIKE", $data); return $data;