From 2ac6b765ab62750fc8348d5bca1efbff9c42a71d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 28 Apr 2008 11:08:44 +0100 Subject: more work on PGSQL 8.3 compatibility (refs #201) --- functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 5044976f1..3390eca82 100644 --- a/functions.php +++ b/functions.php @@ -1108,8 +1108,8 @@ $result = db_query($link, "SELECT id,content_hash,no_orig_date,title, - substring(date_entered,1,19) as date_entered, - substring(updated,1,19) as updated, + ".SUBSTRING_FOR_DATE."(date_entered,1,19) as date_entered, + ".SUBSTRING_FOR_DATE."(updated,1,19) as updated, num_comments FROM ttrss_entries -- cgit v1.2.3-54-g00ecf