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