Update MetadataStore.cs

This commit is contained in:
Namhyeon Go 2025-06-23 17:40:02 +09:00
parent 0cb0f9303d
commit ba3e21feca

View File

@ -106,16 +106,16 @@ namespace WelsonJS.Launcher
} }
string indexKey = $"+{_primaryKey.Name}\0"; string indexKey = $"+{_primaryKey.Name}\0";
int keyLength = Encoding.ASCII.GetByteCount(indexKey + "\0"); // double null-terminated string keyDescription = indexKey + "\0";
string fullKeyDescription = indexKey + "\0"; int keyDescriptionLength = Encoding.ASCII.GetByteCount(keyDescription); // double null-terminated
Api.JetCreateIndex( Api.JetCreateIndex(
_session, _session,
tableid, tableid,
"primary", "primary",
CreateIndexGrbit.IndexPrimary | CreateIndexGrbit.IndexUnique, CreateIndexGrbit.IndexPrimary | CreateIndexGrbit.IndexUnique,
fullKeyDescription, keyDescription,
keyLength, keyDescriptionLength,
100 100
); );