UniQuery.Options.UpdateAllFields
Posted: Mon 12 Jul 2010 14:01
Hi,
This is using D2010 and UniDAC 3.00.0.10.
My test table has 4 test fields and I have a query which does a select * from table. The UpdateAllFields option is true. I only define persistent fields for 2 of the 4 fields in the table.
1. Running against SQL Server 2008, Native Client, I can update the two persistent fields and the update works leaving the other two fields in the table with nulls.
2. Running against PostgreSQL 9 (beta 2), the same setup fails with the error: found field corresponding parameter fld_c'
where fld_c and fld_d are the two fields not defined as persistent fields.
I just wondered why SQL Server and Pg behave differently in this same case?
Regards, Paul.
This is using D2010 and UniDAC 3.00.0.10.
My test table has 4 test fields and I have a query which does a select * from table. The UpdateAllFields option is true. I only define persistent fields for 2 of the 4 fields in the table.
1. Running against SQL Server 2008, Native Client, I can update the two persistent fields and the update works leaving the other two fields in the table with nulls.
2. Running against PostgreSQL 9 (beta 2), the same setup fails with the error: found field corresponding parameter fld_c'
where fld_c and fld_d are the two fields not defined as persistent fields.
I just wondered why SQL Server and Pg behave differently in this same case?
Regards, Paul.