COALESCE seems to pose issues (wront data are sent back)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user