mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 07:23:04 +01:00
Added new field to RDB$INDEX_SEGMENTS
This commit is contained in:
parent
2e981a33dd
commit
48e66184f8
@ -664,6 +664,23 @@ void INI_init2(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (fld[RFLD_F_NAME] == nam_statistics &&
|
||||
relfld[RFLD_R_NAME] == nam_i_segments)
|
||||
{
|
||||
if (major_version >= ODS_VERSION11)
|
||||
{
|
||||
if (!fld[RFLD_F_MINOR])
|
||||
{
|
||||
n++;
|
||||
if (fld[RFLD_F_UPD_MINOR])
|
||||
relation->rel_flags |= REL_force_scan;
|
||||
}
|
||||
else
|
||||
{
|
||||
relation->rel_flags |= REL_force_scan;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!fld[RFLD_F_MINOR])
|
||||
@ -939,7 +956,6 @@ static void add_index_set(DBB dbb,
|
||||
idx::idx_repeat* tail;
|
||||
USHORT position;
|
||||
JRD_FLD field;
|
||||
float selectivity;
|
||||
BLK handle1;
|
||||
BLK handle2;
|
||||
USHORT n;
|
||||
@ -998,8 +1014,9 @@ static void add_index_set(DBB dbb,
|
||||
}
|
||||
idx.idx_count = index->ini_idx_segment_count;
|
||||
idx.idx_flags = index->ini_idx_flags;
|
||||
SelectivityList selectivity(tdbb->tdbb_default);
|
||||
IDX_create_index(tdbb, relation, &idx, (UCHAR*)string, NULL, NULL,
|
||||
&selectivity);
|
||||
selectivity);
|
||||
X.RDB$INDEX_ID = idx.idx_id + 1;
|
||||
END_STORE;
|
||||
|
||||
|
@ -67,6 +67,7 @@ RELATION(nam_i_segments, rel_segments, ODS_8_0)
|
||||
FIELD(f_seg_name, nam_i_name, fld_i_name, 1, 0, 0, 0)
|
||||
FIELD(f_seg_field, nam_f_name, fld_f_name, 1, 0, 0, 0)
|
||||
FIELD(f_seg_position, nam_f_position, fld_f_position, 1, 0, 0, 0)
|
||||
FIELD(f_seg_statistics, nam_statistics, fld_statistics, 1, 0, 0, 0)
|
||||
END_RELATION
|
||||
RELATION(nam_indices, rel_indices, ODS_8_0)
|
||||
FIELD(f_idx_name, nam_i_name, fld_i_name, 1, 0, 0, 0)
|
||||
@ -253,7 +254,8 @@ END_RELATION
|
||||
RELATION(nam_chk_constr, rel_ccon, ODS_8_0)
|
||||
FIELD(f_ccon_cname, nam_con_name, fld_con_name, 1, 0, 0, 0)
|
||||
FIELD(f_ccon_tname, nam_trg_name, fld_trg_name, 1, 0, 0, 0)
|
||||
END_RELATION RELATION(nam_log_files, rel_log, ODS_8_0)
|
||||
END_RELATION
|
||||
RELATION(nam_log_files, rel_log, ODS_8_0)
|
||||
FIELD(f_log_name, nam_file_name, fld_file_name, 1, 0, 0, 0)
|
||||
FIELD(f_log_seq, nam_file_seq, fld_file_seq, 1, 0, 0, 0)
|
||||
FIELD(f_log_length, nam_file_length, fld_file_length, 1, 0, 0, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user