07.01.2016 15:56, Adriano dos Santos Fernandes wrote: >> Remember that a CAST(? as CHAR(10) CHARACTER SET OCTETS) is described in > I mean CAST(? as CHAR(10) CHARACTER SET UTF8)...
You (and currently engine too) mix up data size in bytes and count of characters in a string. xsqlvar.sqllen is size of data in bytes, it says nothing about string length in characters. If someone is sending more characters than is expected, either error can be raised or trailing whitespaces can be ignored. But still it is architectural decision that must be left to version 4. -- WBR, SD. ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel