Please create and upload a simple application which shows the problem, with the database DDL, the simplest possible (probably you only need there one table with one field).
Also tell which DBMS you use, which Lazarus and FPC version, which OS, which widgetset?