binary data shifted
-
- Fresh Boarder
- Posts: 14
- Joined: 24.01.2018, 11:17
binary data shifted
Hi,
The GetData() method in version 7.3 (r6881) now returns binary values shifted 2 bytes,
eg. for binary(16) =
0x000000FF0000000000000000000000FF
GetData() returns
0x1000000000FF00000000000000000000
Seems that the first 2 bytes contain the length of the binary instead of data.
kind regards
hoedlmoser
The GetData() method in version 7.3 (r6881) now returns binary values shifted 2 bytes,
eg. for binary(16) =
0x000000FF0000000000000000000000FF
GetData() returns
0x1000000000FF00000000000000000000
Seems that the first 2 bytes contain the length of the binary instead of data.
kind regards
hoedlmoser
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: binary data shifted
Hello hoedlmoser,
if it's a TVarBytesField descendant:
http://docwiki.embarcadero.com/Librarie ... BytesField
if it's a fixed size TBytesField, i would agree..
So what's the field definition?
if it's a TVarBytesField descendant:
http://docwiki.embarcadero.com/Librarie ... BytesField
if it's a fixed size TBytesField, i would agree..
So what's the field definition?
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
-
- Fresh Boarder
- Posts: 14
- Joined: 24.01.2018, 11:17
Re: binary data shifted
Hi Michael,
its a fixed size binary, like described in the example
kind regards
hoedlmoser
its a fixed size binary, like described in the example
kind regards
hoedlmoser
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: binary data shifted
Me again,
What's the TField.DataType? If it's ftBytes than that's done by compiler. I added a testcase to see if Zeos correctly is able to determine BINARY/VARBINARY. Yet no issues to see.
What's the TField.DataType? If it's ftBytes than that's done by compiler. I added a testcase to see if Zeos correctly is able to determine BINARY/VARBINARY. Yet no issues to see.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
-
- Fresh Boarder
- Posts: 14
- Joined: 24.01.2018, 11:17
Re: binary data shifted
hi again,
TField.DataType returns "ftVarBytes". This is on a 32 bit Lazarus 1.8.2
kind regards
hoedlmoser
TField.DataType returns "ftVarBytes". This is on a 32 bit Lazarus 1.8.2
kind regards
hoedlmoser
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: binary data shifted
Still not able to reproduce your ussue.
So give me all informations of:
1. Exact Version and ProductName of the Server
2. Exact Version and ProductName of the Compiler
3. Exact Version and ProductName of the library or OLEDB/ODBC version
you are using. On my side all tests are passing, that's annoying to get to bugga you're talking about.
So give me all informations of:
1. Exact Version and ProductName of the Server
2. Exact Version and ProductName of the Compiler
3. Exact Version and ProductName of the library or OLEDB/ODBC version
you are using. On my side all tests are passing, that's annoying to get to bugga you're talking about.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: binary data shifted
I assume it still is SQL Server 2000 and FreeTDS -> viewtopic.php?f=38&t=127062EgonHugeist wrote: ↑29.10.2020, 19:20 1. Exact Version and ProductName of the Server
2. Exact Version and ProductName of the Compiler
3. Exact Version and ProductName of the library or OLEDB/ODBC version
-
- Fresh Boarder
- Posts: 14
- Joined: 24.01.2018, 11:17
Re: binary data shifted
hi,
1. Exact Version and ProductName of the Server
MS SQL 2000 Standard 32 bit with sp4 running on a 64 bit server
2. Exact Version and ProductName of the Compiler
I dont know how to get an "exacter" version of the compiler than the one i mentioned above
3. Exact Version and ProductName of the library or OLEDB/ODBC version
The library is a sybdb.dll 32 bit (provided with "zeoslib-code-0-r6881-branches-testing-7.3.zip", there is no other suitable one)
Protocol of the ZConnection is set to 'mssql' (the only one that works)
Note: The compiler is running on my work station inside a WXP-VM which i need for maintainance purposes of the old Delphi 7 projects, but I dont think that this causes any interferences
kind regards,
hoedlmoser
1. Exact Version and ProductName of the Server
MS SQL 2000 Standard 32 bit with sp4 running on a 64 bit server
2. Exact Version and ProductName of the Compiler
I dont know how to get an "exacter" version of the compiler than the one i mentioned above
3. Exact Version and ProductName of the library or OLEDB/ODBC version
The library is a sybdb.dll 32 bit (provided with "zeoslib-code-0-r6881-branches-testing-7.3.zip", there is no other suitable one)
Protocol of the ZConnection is set to 'mssql' (the only one that works)
Note: The compiler is running on my work station inside a WXP-VM which i need for maintainance purposes of the old Delphi 7 projects, but I dont think that this causes any interferences
kind regards,
hoedlmoser
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: binary data shifted
This one is really old. Most probably it is a 0.9x version. Please use something current. With Delphi 7 the versions using libiconv from our files section on sourceforge should be best suited: https://sourceforge.net/projects/zeoslib/files/3rd%20party/FreeTDS/hoedlmoser wrote: ↑02.11.2020, 12:09 The library is a sybdb.dll 32 bit (provided with "zeoslib-code-0-r6881-branches-testing-7.3.zip", there is no other suitable one)
Protocol of the ZConnection is set to 'mssql' (the only one that works)
Best regards,
Jan
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: binary data shifted
Hello hoedlmoser,
i finally was able to fix the described issue by https://sourceforge.net/p/zeoslib/code-0/7180/
Note FreeTDS it's self tags all columns as "variable", which is a bug from my POV. But with the metadata in conjunction the fixed/variable types should be seen corectly now.
i finally was able to fix the described issue by https://sourceforge.net/p/zeoslib/code-0/7180/
Note FreeTDS it's self tags all columns as "variable", which is a bug from my POV. But with the metadata in conjunction the fixed/variable types should be seen corectly now.
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/