Memo will be truncated in new version

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for SQL Server in Delphi and C++Builder
Post Reply
semike
Posts: 7
Joined: Thu 15 Nov 2007 19:30

Memo will be truncated in new version

Post by semike » Thu 15 Nov 2007 20:02

Hello,

since I installed the update of BDS2007 (D2007 SP3) and dbExpress driver 4.20.0.5 I have a very strange phenomenon:

I add an encrypted value to a param and the value will be truncated:

Code: Select all

params.CreateParam(ftMemo, 'Memo', ptUnknown).AsMemo := 'CMP2x'#4#0#0'ggwt'; // any encrypted value
// data will be truncated here  (datalength = 6)                 ^
when I add this value to a blob field then it will work fine:

Code: Select all

params.CreateParam(ftBlob, 'Blob', ptUnknown).AsBlob := 'CMP2x'#4#0#0'ggwt'; // any encrypted value
// datalength = 12
The last version of BDS2006 worked fine, and CodeGear original driver in BDS2007 works fine (but has other problems).

Any ideas to workaround this issue?

Thank you

Michael

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 20 Nov 2007 15:44

Thank you for information. We have reproduced the problem. The investigation of the problem is in progress. As soon as we solve the problem or we need additional information we will let you know.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 22 Nov 2007 14:07

We have fixed this problem. It will be available in the next build of DbxSda.

Post Reply