COALESCE seems to pose issues (wront data are sent back)

This commit is contained in:
Gilles Crettenand
2015-06-04 10:59:04 +02:00
parent 7ac2b107dc
commit e12dc5a3c7

View File

@@ -105,11 +105,7 @@ class User extends DbMapping
SELECT SELECT
NoticeID, NoticeID,
Tag AS Field, Tag AS Field,
LTRIM(RTRIM(COALESCE( NoticeFields.ContentShortPart AS Data
NULLIF(NoticeFields.ContentShortPart, ''),
NULLIF(NoticeFields.ContentLongPart, ''),
'na'
))) AS Data
FROM NoticeFields FROM NoticeFields
WHERE Tag IN ('901', '300') WHERE Tag IN ('901', '300')
) AS src ) AS src