mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-28 02:20:49 +00:00
parent
ba3e21feca
commit
ece369f8f0
|
|
@ -106,16 +106,16 @@ namespace WelsonJS.Launcher
|
||||||
}
|
}
|
||||||
|
|
||||||
string indexKey = $"+{_primaryKey.Name}\0";
|
string indexKey = $"+{_primaryKey.Name}\0";
|
||||||
string keyDescription = indexKey + "\0";
|
int keyLength = Encoding.ASCII.GetByteCount(indexKey + "\0"); // double null-terminated
|
||||||
int keyDescriptionLength = Encoding.ASCII.GetByteCount(keyDescription); // double null-terminated
|
string fullKeyDescription = indexKey + "\0";
|
||||||
|
|
||||||
Api.JetCreateIndex(
|
Api.JetCreateIndex(
|
||||||
_session,
|
_session,
|
||||||
tableid,
|
tableid,
|
||||||
"primary",
|
"primary",
|
||||||
CreateIndexGrbit.IndexPrimary | CreateIndexGrbit.IndexUnique,
|
CreateIndexGrbit.IndexPrimary | CreateIndexGrbit.IndexUnique,
|
||||||
keyDescription,
|
fullKeyDescription,
|
||||||
keyDescriptionLength,
|
keyLength,
|
||||||
100
|
100
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user