TuniTable postgresql varchar limit ?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
adroege
Posts: 16
Joined: Tue 07 Apr 2009 16:13
Location: Orlando, FL

TuniTable postgresql varchar limit ?

Post by adroege » Tue 07 Apr 2009 16:19

If I create a table like this in Postgresql

CREATE TABLE test(
f1 integer,
c2 character varying(4194304)
);

And then I use the Demo program of the TuniTable provided by Devart to access this table, I get very strange behavior trying to update or insert into the c2 column.

Is there a limit with the TUniDac components regarding the largest varchar they will access in Postgresql? If so what is the limit?

Thanks!

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 08 Apr 2009 08:00

The limit for a string field length is 65535. In the next build we'll add a fix. So fields with length more than 8191 will be mapped to TMemoField.

In the current build you can set the LongStrings option of TUniQuery to False for mapping such fields to TMemoField.

Post Reply