Re: [fpc-pascal] TStringField.Size

2025-07-15 Thread Luca Olivetti via fpc-pascal
El 15/7/25 a les 18:01, Michael Van Canneyt via fpc-pascal ha escrit: On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 17:57, Michael Van Canneyt via fpc-pascal ha escrit: On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 14:59, Michael Va

Re: [fpc-pascal] TStringField.Size

2025-07-15 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 17:57, Michael Van Canneyt via fpc-pascal ha escrit: 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 documentati

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Luca Olivetti via fpc-pascal
El 14/7/25 a les 17:57, Michael Van Canneyt via fpc-pascal ha escrit: 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/tstringfi

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Michael Van Canneyt via fpc-pascal
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

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Luca Olivetti via fpc-pascal
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 si

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: El 14/7/25 a les 14:30, Michael Van Canneyt via fpc-pascal ha escrit: On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: Hello, In a project I'm using both an sql server database (TMSSQLConnection) and a postgresql one (TPQ

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Luca Olivetti via fpc-pascal
El 14/7/25 a les 14:30, Michael Van Canneyt via fpc-pascal ha escrit: On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: 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, b

Re: [fpc-pascal] TStringField.Size

2025-07-14 Thread Michael Van Canneyt via fpc-pascal
On Mon, 14 Jul 2025, Luca Olivetti via fpc-pascal wrote: 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 chan

[fpc-pascal] TStringField.Size

2025-07-14 Thread Luca Olivetti via fpc-pascal
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 lo