ODBC Provider Can't retrieve blob data >32Kb

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Thu 18 Jul 2013 10:17

I'm posting data into a blob field using TUniquery with ODBCUniProvider (ODBC Driver for Progress OpenEdge 11.1)
This works fine.

However, when trying to retrieve data from the blob field using a TUniQuery or TUniTable the blob field data not is returned when the data size is greater than 32Kb. It doesn't matter if it's an image or text. Anything below 32kb is OK!

I've tested the Progress OpenEdge ODBC driver using BDE/TQuery and all works perfectly.

Is this a UniDAC bug?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Thu 18 Jul 2013 11:21

Hello,

Thank you for the information. We have reproduced the problem and will fix it as soon as possible.

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Thu 18 Jul 2013 11:32

Thanks Alex

Is there any workaround I can use until the fix is released?

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Thu 18 Jul 2013 12:34

One more question please!

When will the next release be?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Thu 18 Jul 2013 12:39

Hello,

Please specify the database you work with

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Thu 18 Jul 2013 12:56

Progress OpenEdge 11.1

Customers existing system - definately not my choice.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Fri 19 Jul 2013 10:53

Hello,

To solve this problem, we need access to your server, if you can provide access to it, please send us the connection parameters at alexp*devart*com

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Fri 19 Jul 2013 13:07

Just carried out the same test using MySQL ODBC driver 5.1) and it seems to have the same problem.
Only difference is when using:-
Tblobfield( UniQuery1.FieldByName('REPORT_DATA')).BlobSize

MYSQL ODBC driver returns correct blob size
Progress OpenEdge ODBC driver returns 32768 if over 32Kb and correct size if less than 32Kb

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Mon 22 Jul 2013 10:07

Hello,

Unfortunately, the DataDirect ODBC driver can work with commercial MySQL server versions only. If you can give us access to your server, we will check this problem once more on your MySQL server.

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Mon 22 Jul 2013 10:39

Hi Alex

I did the test using the MySQL ODBC driver from MySQL not the ODBC Driver from Datadirect.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Tue 23 Jul 2013 10:12

Hello,

We have reproduced the problem on the standard MySQL and PostgreSQL drivers and will try to fix it ASAP.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Tue 23 Jul 2013 10:44

Hello,

We have fixed the problem with BLOB in ODBC, however, we have checked this fix on PostgreSQL and MySQL only. Please send your license number, e-mail and the IDE version to alexp*devart*com, in order for me to send the fixed version for you to be able to check the fix directly on the server you are using.

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Thu 25 Jul 2013 07:08

Alex, Did you get my email and attachment?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by AlexP » Thu 25 Jul 2013 12:46

Hello,

I have received your project and built it on a fixed version. I sent you a letter with a zip-archive including the application.

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: ODBC Provider Can't retrieve blob data >32Kb

Post by Brob » Thu 25 Jul 2013 13:10

Thank you very much for the test application.
Unfortunately the problem isn't fixed for me.

I have sent you an email.

Post Reply