TStringField.Size

Luca Olivetti via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>
Hello,

In a project I'm using both an sql server database (TMSSQLConnection) 
and a postgresql one (TPQConnection).
One of the TStringField is defined as size 100, but in the sql server it 
has been changed to to 200.
Even without changing the TStringField.Size in the program I can get 
values longer than 100 characters.
I did a test with the TPQConnection and if I change the size of a field, 
the TStringField is truncated according to its size.
Why the difference between the two database connectors? Shouldn't it 
depend exclusively on the TField implementation?

Bye
-- 
Luca
_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.