After updating to UniDAC 5.2.5 with PostgreSQL provider, our master-detail relationships stopped working when the master query is empty (error pgError "could not determine data type of parameter $1.")
- Master-detail relationship is defined as "id->id_master", and LocalMasterDetail=False.
We checked the query SQL with DBMonitor and the query is a bit strange:
Code: Select all
select * from detail WHERE ( id_master IS NULL AND :id IS NULL)We expected the query to be:
Code: Select all
select * from detail WHERE ( id_master IS NULL )or
Code: Select all
select * from detail WHERE ( id_master = :id )
param id Value = NULLRegards,