FSN#38088 ORA-01489: Concatenatie van tekenreeksen resulteert in een te lange reeks.
svn path=/Website/branches/v2016.2/; revision=31110
This commit is contained in:
@@ -139,7 +139,7 @@ fac = { myfunctionssqlstring:
|
||||
var fieldarr = [];
|
||||
for (var j in pfieldstrarr)
|
||||
{
|
||||
fieldarr.push("REGEXP_LIKE(' ' || " + pfieldstrarr[j] + " || ' ', "+ safe.quoted_sql("(\\W" + conditions[i] + "\\W)") + ", 'i')");
|
||||
fieldarr.push("REGEXP_LIKE(" + pfieldstrarr[j] + ", "+ safe.quoted_sql("(^|\\W)" + conditions[i] + "(\\W|$)") + ", 'i')");
|
||||
}
|
||||
resarr.push("(" + fieldarr.join(" OR ") + ")");
|
||||
}
|
||||
@@ -174,7 +174,7 @@ fac = { myfunctionssqlstring:
|
||||
if (conditions[i].length)
|
||||
{
|
||||
if (wholeword) // REGEXP_LIKE(' ' || fac_faq_answer || ' ', '(\WMelding\W)', 'i')
|
||||
resarr.push("REGEXP_LIKE(' ' || " + pfieldstr + " || ' ', "+ safe.quoted_sql("(\\W" + conditions[i] + "\\W)") + ", 'i')");
|
||||
resarr.push("REGEXP_LIKE(" + pfieldstr + ", "+ safe.quoted_sql("(^|\\W)" + conditions[i] + "(\\W|$)") + ", 'i')");
|
||||
else
|
||||
resarr.push(pfieldstr+ " LIKE "+ safe.quoted_sql_wild("%"+conditions[i] + "%"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user