[ajax] fix the fix introduced in 3.9.1 to avoid duplicated loads: it cause some other errors since the browser may load the script *after* the server-response event is emited, causing pb if the script interact with this event
/* -*- sql -*- mysql specific registered procedures, *//* XXX limit_size version dealing with format as postgres version does. XXX mysql doesn't support overloading, each function should have a different name NOTE: fulltext renamed since it cause a mysql name conflict */CREATEFUNCTIONtext_limit_size(vfulltextTEXT,maxsizeINT)RETURNSTEXTNOSQLBEGINIFLENGTH(vfulltext)<maxsizeTHENRETURNvfulltext;ELSERETURNSUBSTRING(vfulltextfrom1formaxsize)||'...';ENDIF;END;;