8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 14:43:03 +01:00

Fix #8219 - Database creation in 3.0.12, 4.0.5 and 5.0.1 slower than in previous releases. (#8220)

This commit is contained in:
Adriano dos Santos Fernandes 2024-08-20 07:03:18 -03:00 committed by Adriano dos Santos Fernandes
parent d40d01bc45
commit c647af5a45

View File

@ -4159,7 +4159,9 @@ static bool create_collation(thread_db* tdbb, SSHORT phase, DeferredWork* work,
case 1:
setupSpecificCollationAttributes(tdbb, transaction, TTYPE_TO_CHARSET(work->dfw_id),
work->dfw_name.c_str(), false);
if (!INTL_defined_type(tdbb, work->dfw_id))
if (!(transaction->tra_flags & TRA_system) && // avoid run during database creation
!INTL_defined_type(tdbb, work->dfw_id))
{
setupSpecificCollationAttributes(tdbb, transaction, TTYPE_TO_CHARSET(work->dfw_id),
work->dfw_name.c_str(), true);