Re: TStringField.Size

Michael Van Canneyt via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>

On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote:

> El 14/7/25 a les 14:59, Michael Van Canneyt via fpc-pascal ha escrit:
>
>>> 
>>> That's not what the documentation says
>>> 
>>> https://www.freepascal.org/docs-html/fcl/db/tstringfield.size.html 
>>> (emphasis mine)
>>> 
>>> "it is the declared *maximum* size of the string (in *characters*) and is 
>>> used to calculate the size of the dataset buffer."
>> 
>> Seems the documentation has not been updated for the unicode case :-(
>
> Well, even the "maximum" part isn't true, at least using the 
> TMSSQLConnection.

How so ? the size comes from what is reported by MSSQL.

Michael.
_______________________________________________
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.