To post data in PostgreSQL database, even after active session, using standard Lazarus IDE TPQConnection control, create event :
procedure T_c_data._sql_tableAfterPost(DataSet: TDataSet);
begin
_sql_table.ApplyUpdates;
_db_transaction.Commit/Retaining;
end;
procedure T_c_data._sql_tableAfterPost(DataSet: TDataSet);
begin
_sql_table.ApplyUpdates;
_db_transaction.Commit/Retaining;
end;
No comments:
Post a Comment