[dataimport] since we have foreign key constraints in the database, 'entities' table should be updated first
/* -*- 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;;