On 11-09-2023 18:21, 'Dimitry Sibiryakov' via firebird-devel wrote:
> Reduce my example to "alter table t3 alter a type varchar(25)
> character set win1251" and may be it will be a little more clear. In
> this form the query is accepted by current Firebird versions.
>
> I asked two questions:
>
> 1) Whether the query should throw error [in existing Firebird versions]
> (and thus current behavior is a bug).
Given it doesn't actually change the character set (weird, I never
noticed that before), I think it should result in an error.
> 2) If changing of collation and charset should be allowed in future
> Firebird versions as a part of changing of data type.
I guess the problem is that changing the character set requires a full
validation, except for changing from ASCII, or to UTF8. Basically all
other changes could result in transliteration errors for characters not
shared by both character sets.
In other words, changing just the collation is probably simpler than
also changing the character set ;)
Mark
--
Mark Rotteveel