UniDAC 5.2.5 Master-Detail possible BUG
Posted: Wed 22 Jan 2014 11:20
Hi,
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:
If we make UnpreparedExecute=True in Detail query options, the query is the same, but there is no error.
We expected the query to be:
or
Please note that everything was working fine with the previous version of UniDAC.
Regards,
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,