Recent

Author Topic: 2015 era sqllite app doesn't display field.  (Read 450 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12536
  • FPC developer.
2015 era sqllite app doesn't display field.
« on: September 28, 2025, 01:40:26 pm »
I've an 2015-2017 era sqldb-with-sqllite app that is for some personal administration. I had to update it, and saw that a field wasn't showing anymore. (with the same original DLL)

The field is ftfixedchar with size 128 and precision -1, and it is a simple query  (select * from tablename).  Any idea what that could be? something changed in the handling of string types?

paweld

  • Hero Member
  • *****
  • Posts: 1500
Re: 2015 era sqllite app doesn't display field.
« Reply #1 on: September 28, 2025, 04:27:24 pm »
You didn't mention which version of FPC you are using. But if it's trunk, 3.2-fixes, or 3.2.4rc1, the cause may be the patch from issue : https://gitlab.com/freepascal.org/fpc/source/-/issues/40686
The symptom is the field type set as ftMemo.
Best regards / Pozdrawiam
paweld

rvk

  • Hero Member
  • *****
  • Posts: 6886
Re: 2015 era sqllite app doesn't display field.
« Reply #2 on: September 28, 2025, 04:41:15 pm »
Any idea what that could be? something changed in the handling of string types?
Yes. Something has changed.
TEXT fields are now treated as ftMemo as in the past they were treated as ftString.

I think this was a wrong decision but it was done.

It would have been better to fix the FTS-Tables issue instead of generally change this for all tables.
« Last Edit: September 28, 2025, 04:43:29 pm by rvk »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12536
  • FPC developer.
Re: 2015 era sqllite app doesn't display field.
« Reply #3 on: September 28, 2025, 05:55:47 pm »
fpc trunk/lazarus trunk, I tried setting the field to ftmemo, ftstring or ftfixedchar, and it doesn't display values in the grid either way.

PascalDragon

  • Hero Member
  • *****
  • Posts: 6195
  • Compiler Developer
Re: 2015 era sqllite app doesn't display field.
« Reply #4 on: September 28, 2025, 06:00:56 pm »
If I remember correctly then you need to set some option in the grid that allows it to display memo fields (dgDisplayMemoText in Options).

 

TinyPortal © 2005-2018