[autoform] fix restoration of pending generic relation: inconsistent id was generated (eg different from the one generated by javascript
/* -*- 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;;