From e12dc5a3c74f626a00a737c3a05c3851898094b0 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Thu, 4 Jun 2015 10:59:04 +0200 Subject: [PATCH] COALESCE seems to pose issues (wront data are sent back) --- Lib/db/User.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/db/User.php b/Lib/db/User.php index 998fd24..50ff8e5 100644 --- a/Lib/db/User.php +++ b/Lib/db/User.php @@ -105,11 +105,7 @@ class User extends DbMapping SELECT NoticeID, Tag AS Field, - LTRIM(RTRIM(COALESCE( - NULLIF(NoticeFields.ContentShortPart, ''), - NULLIF(NoticeFields.ContentLongPart, ''), - 'na' - ))) AS Data + NoticeFields.ContentShortPart AS Data FROM NoticeFields WHERE Tag IN ('901', '300') ) AS src