How is TMyQuery.options.LongString used

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ca_cruiser
Posts: 13
Joined: Tue 17 May 2005 12:59

How is TMyQuery.options.LongString used

Post by ca_cruiser » Sat 06 Oct 2007 03:06

Hello,

I had a MySql concat function truncating at 8192 chars. I set Options.LongString=False and was able to avoid string truncation.

Ae their any consequences to leaving LongString=False at all times?
e.g. performance,

I used this particualr query to retrieve single fields, one row (i.e. As a function).

JohnC

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

Post by Antaeus » Tue 09 Oct 2007 13:07

If the value of this property is set to False, MyDAC creates TMemoField for string fields which length is greater than 255. There should be no problems with this option set to False.
I reproduced the problem. The reason of this problem is that MySQL returns wrong field length. It is 8192. Setting the LongStrings option to False solves the problem as MyDAC does not set the field length for TMemoField.

Post Reply