mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03:02 +01:00
Fix bug SF #1076858
This commit is contained in:
parent
747dfa524a
commit
9826986fb8
@ -1542,6 +1542,8 @@ void BTR_reserve_slot(thread_db* tdbb, jrd_rel* relation, jrd_tra* transaction,
|
||||
const Database* dbb = tdbb->tdbb_database;
|
||||
CHECK_DBB(dbb);
|
||||
|
||||
fb_assert(relation && relation->rel_index_root);
|
||||
|
||||
// Get root page, assign an index id, and store the index descriptor.
|
||||
// Leave the root pointer null for the time being.
|
||||
WIN window(relation->rel_index_root);
|
||||
|
@ -193,6 +193,10 @@ void IDX_create_index(
|
||||
isc_arg_string, ERR_cstring(relation->rel_name), 0);
|
||||
}
|
||||
|
||||
if (!relation->rel_index_root) {
|
||||
get_root_page(tdbb, relation);
|
||||
}
|
||||
|
||||
BTR_reserve_slot(tdbb, relation, transaction, idx);
|
||||
|
||||
if (index_id) {
|
||||
|
Loading…
Reference in New Issue
Block a user