On 14-01-2022 17:10, Dimitry Sibiryakov wrote:
Mark Rotteveel wrote 14.01.2022 17:06:
Also shouldn't it to be returned if user name received in DPB
(after conversion into UTF-8) doesn't fit as well?
I'm not sure what you mean with that.
Currently if someone put into DPB non-ASCII user name and during
conversion into UTF-8 it doesn't fit 255 bytes the error "attempt to
store %d bytes in a clumplet with maximum size 255 bytes" is thrown.
Shouldn't the error to be a little more specific and comprehensive...?
Personally, I don't think so, as I think that is messy to conflate logic
for populating the DPB with selecting appropriate messages specific to
the select DPB item.
Also when you use a DPB v2, it is wide, so accepts far larger values
than you'll ever logically need for a user name.
Mark
--
Mark Rotteveel
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel