For fuck's sake mysql

Workaround LAST_INSERT_ID and CAST limitations by making all primary keys unsigned bigint.
Workaround LAST_INSERT_ID signed/unsigned inconsistency between 5.5 and 5.6 by using Convert.ToUInt64 instead of casts.
This commit is contained in:
Greg Edwards
2014-07-22 12:04:31 -04:00
parent eac2ac6e21
commit 4198aace33
18 changed files with 96 additions and 99 deletions

View File

@@ -57,7 +57,7 @@ namespace bvRestorer5
}
int pid = BitConverter.ToInt32(data, 0x08);
long serial = BitConverter.ToInt64(data, 0x0c);
ulong serial = BitConverter.ToUInt64(data, 0x0c);
byte[] mainData = new byte[0x18a4];
Array.Copy(data, 0x14, mainData, 0, 0x18a4);