return by descriptor UDF varchar parametr trunc for 1/4 of it`s len if UD8 set paramdsc->dsc_sub_type to UTF8 --------------------------------------------------------------------------------------------------------------
Key: CORE-5983 URL: http://tracker.firebirdsql.org/browse/CORE-5983 Project: Firebird Core Issue Type: Bug Components: Engine Affects Versions: 3.0.4 Reporter: Segey Khalyutin Priority: Trivial database default charset is UTF8 in UDF i`m set paramdsc->dsc_sub_type to UTF8 like this: private void assign_sub_type(byte charset, byte collation) { this.sub_type = (short) ((collation) << 8 | (charset)); } assign_sub_type(4, 4); when UDF is return parametr to stored ptocedure the value len trunc for 1/4 of it`s len value in UDF '123-123-123-123' has '123-' in stored procedure/ if i`m set paramdsc->dsc_sub_type = 0 return value id normal '123-123-123-123' as needed Query: NO bug in engine, I`m mast set paramdsc->dsc_sub_type = 0; in UDF for UTF8 strings or trunc for 1/4 is bug in engine, I`m mast set paramdsc->dsc_sub_type = (short) ((collation) << 8 | (charset)); or I`m don`t understood something... -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel