This question is in reference to Atlassian Documentation: Connecting JIRA applications to SQL Server 2008
We use JSD and actually we try to generate SLA using JQL and filter request types. All seems ok, i can register the SLA, but it doesnt work, when i review the log files i find:
Caused by: java.sql.SQLException: Argument data type ntext is invalid for argument 1 of lower function.
and above the query that fails, the error is with lower(ntext)
how can i solve this error?
select top (?)
"AO_54307E_VIEWPORTFORM"."CALL_TO_ACTION",
"AO_54307E_VIEWPORTFORM"."DESCRIPTION",
"AO_54307E_VIEWPORTFORM"."FORM_ORDER",
"AO_54307E_VIEWPORTFORM"."ICON",
"AO_54307E_VIEWPORTFORM"."ICON_ID",
"AO_54307E_VIEWPORTFORM"."ID",
"AO_54307E_VIEWPORTFORM"."INTRO",
"AO_54307E_VIEWPORTFORM"."ISSUE_TYPE_ID",
"AO_54307E_VIEWPORTFORM"."KEY",
"AO_54307E_VIEWPORTFORM"."NAME",
"AO_54307E_VIEWPORTFORM"."VIEWPORT_ID"
from
"dbo"."AO_54307E_VIEWPORTFORM" "AO_54307E_VIEWPORTFORM"
inner join "dbo"."AO_54307E_VIEWPORT" "AO_54307E_VIEWPORT"
on "AO_54307E_VIEWPORTFORM"."VIEWPORT_ID" = "AO_54307E_VIEWPORT"."ID"
where
"AO_54307E_VIEWPORTFORM"."VIEWPORT_ID" = ?
and (lower("AO_54307E_VIEWPORTFORM"."NAME") like ? escape '\'
or (lower("AO_54307E_VIEWPORTFORM"."DESCRIPTION") like ? escape '\')
or (lower("AO_54307E_VIEWPORTFORM"."INTRO") like ? escape '\')
and ("AO_54307E_VIEWPORTFORM"."ISSUE_TYPE_ID" in (select cast("issuetype"."ID" as bigint)
from "dbo"."issuetype" "issuetype")))
order by "AO_54307E_VIEWPORT"."NAME" asc, "AO_54307E_VIEWPORTFORM"."FORM_ORDER" asc