FirebirdSql case insensitive

1.2k Views Asked by At

Is there a way to make a FirebirdSql database case insensitive, and if not the database then a complete table? I know about setting the CharSet to UTF8 and COLLATE UNICODE_CI on each column but wondered if there was a way to do the whole database.

1

There are 1 best solutions below

3
On

You can configure the default character set (including collation) on database create

CREATE {DATABASE | SCHEMA}
   ...
   [DEFAULT CHARACTER SET charset [COLLATION collation]]

Current Firebird versions do not support altering the default character set using DDL, you would need to make a system table update if you want to do this for an existing database.

The default character set is applied on column creation if no specific character set was defined. If no default character set is specified, it is set to NONE (which basically means: any byte combination is valid).