|
Question: What does the option PoForceIsNull mean?
Answer: Hmm :), this a great FIBPlus feature. For example, you have a query:
delete from Table1 where Param1 =?Param1 and Param2 =?Param2
Suppose, that Param2 is null. Standard components simply set Param2 buffer to nil and that's all. But actually, it is necessary to send another query to a server:
delete from Table1 where Param1 =?Param1 and Param2 IS NULL
Otherwise, the server will not delete a necessary record as it just cannot find such a record. The PoNoForceIsNul option allows TpFIBQuery (and TpFIBDataSet) to change SQL with NULL parameter values if necessary. If you have record with NULL fields in your selecting query, the "delete" query won't work until you set PoNoForceIsNul to True.