Hi, i faced a problem:
I have UID in my postgresql DB table, it looks like:
Code:
2b179f70-3c29-11e4-abda-6fbacb471cca
But when i select it to EE application i get the following:
Code:
709f172b-293c-e411-abda-6fbacb471cca
As you see first 8 bytes are swaped, rest 8 bytes are OK, it appears not only in select but in insert also.
When i want to insert it i do:
Code:
id.fromHex("2b179f703c2911e4abda6fbacb471cca");
Tried in 32 and 64bit, Debug and Release.
If i try to select vice versa, it works vice versa.
One more example:
Quote:in db: 12345678-9012-3456-7890-123456789012
in ee: 78563412-1290-5634-7890-123456789012
But if i pass UID as text from EE and to EE, it works fine, but it's bad, because it's way too slower.
UPD:
If i bind UID like this to be inserted into database, it inserts fine:
Code:
sql.commandParam(0, CPtr(&id), 16); // Inserts fine
sql.commandParam(0, id); // inserts swaped
But in any way after select back to EE it swaps no matter how it was inserted