Read-only dataset
Posted: Thu 02 Jan 2014 14:17
Hi there...
I have database "PostgreSQL 9.1.1, compiled by Visual C++ build 1500, 64-bit" with some tables. I have also couple of my applications compiled with PgDAC 4.0.2 and PgDAC 4.2.5 (delphi XE2 and XE5). Everything runs on Windows 2008 R2 64 bits (sp1).
I have a problem, because with this database, my applications (production one and specially created test one) can not edit data, because of read-only dataset. I tested database with SQL Manager and PG Admin (with same username) and I can edit data with no problems. Only with my applications I can not.
The same applications, with other servers can edit data and works properly.
I thought that maybe problem is with my server, but I can not find anything that locks dataset's or restrict eg. application name.
Of course, TPgQuery is not read-only and I have key fields property set. AutoEdit property of TDataSource is true. My grid and /or TDBEdit are not read-only neither. I can remove datasource and edit controls and try to edit data from the code:
query.edit;
query.fieldbyname('my_column').AsString := 'test';
query.post;
Same effect.
If I use sql and execsql - it edit's data.
Can you point me - what could be wrong?
regards
Mario
I have database "PostgreSQL 9.1.1, compiled by Visual C++ build 1500, 64-bit" with some tables. I have also couple of my applications compiled with PgDAC 4.0.2 and PgDAC 4.2.5 (delphi XE2 and XE5). Everything runs on Windows 2008 R2 64 bits (sp1).
I have a problem, because with this database, my applications (production one and specially created test one) can not edit data, because of read-only dataset. I tested database with SQL Manager and PG Admin (with same username) and I can edit data with no problems. Only with my applications I can not.
The same applications, with other servers can edit data and works properly.
I thought that maybe problem is with my server, but I can not find anything that locks dataset's or restrict eg. application name.
Of course, TPgQuery is not read-only and I have key fields property set. AutoEdit property of TDataSource is true. My grid and /or TDBEdit are not read-only neither. I can remove datasource and edit controls and try to edit data from the code:
query.edit;
query.fieldbyname('my_column').AsString := 'test';
query.post;
Same effect.
If I use sql and execsql - it edit's data.
Can you point me - what could be wrong?
regards
Mario