mirror of
https://github.com/MichaelGrafnetter/DSInternals
synced 2025-01-25 00:03:20 +00:00
Fixed a bug in temporary index loading.
This commit is contained in:
parent
fba7c5a1e8
commit
7c8543ef7d
@ -1,3 +1,6 @@
|
|||||||
|
Version 2.11
|
||||||
|
- Fixed a bug in temporary index loading.
|
||||||
|
|
||||||
Version 2.10
|
Version 2.10
|
||||||
- Added support for the NTLM-Strong-NTOWF package in Supplemental Credentials (new in Windows Server 2016 TP4)
|
- Added support for the NTLM-Strong-NTOWF package in Supplemental Credentials (new in Windows Server 2016 TP4)
|
||||||
- Added support for initial databases
|
- Added support for initial databases
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.Linq;
|
||||||
using DSInternals.Common.Data;
|
using DSInternals.Common.Data;
|
||||||
using Microsoft.Database.Isam;
|
using Microsoft.Database.Isam;
|
||||||
using DSInternals.Common;
|
using DSInternals.Common;
|
||||||
@ -17,6 +18,7 @@
|
|||||||
private const string AttributeColIndexPrefix = "INDEX_";
|
private const string AttributeColIndexPrefix = "INDEX_";
|
||||||
private const string SystemColSuffix = "_col";
|
private const string SystemColSuffix = "_col";
|
||||||
private const string SystemColIndexSuffix = "_index";
|
private const string SystemColIndexSuffix = "_index";
|
||||||
|
private const char IndexNameComponentSeparator = '_';
|
||||||
|
|
||||||
private IDictionary<int, SchemaAttribute> attributesByInternalId;
|
private IDictionary<int, SchemaAttribute> attributesByInternalId;
|
||||||
private IDictionary<string, SchemaAttribute> attributesByName;
|
private IDictionary<string, SchemaAttribute> attributesByName;
|
||||||
@ -382,7 +384,8 @@
|
|||||||
// Strip any suffix or prefix from index
|
// Strip any suffix or prefix from index
|
||||||
if(indexName.StartsWith(AttributeColIndexPrefix))
|
if(indexName.StartsWith(AttributeColIndexPrefix))
|
||||||
{
|
{
|
||||||
indexName = indexName.Substring(AttributeColIndexPrefix.Length, indexName.Length - AttributeColIndexPrefix.Length);
|
// The index name can start with INDEX_ or INDEX_T_ (e.g. INDEX_T_9EBE46C2), so we get the last component
|
||||||
|
indexName = indexName.Split(IndexNameComponentSeparator).Last();
|
||||||
}
|
}
|
||||||
if(indexName.EndsWith(SystemColIndexSuffix))
|
if(indexName.EndsWith(SystemColIndexSuffix))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user