On Fri, 30 Aug 2013, Sven Barth wrote:
Am 29.08.2013 23:04 schrieb "Michael Van Canneyt" <mich...@freepascal.org>: > > > > On Thu, 29 Aug 2013, silvioprog wrote: > >> >> Other interesting feature is the property EmptyAsNull: >> >> http://docwiki.embarcadero.com/VCL/XE/en/IBCustomDataSet.TIBStringField.EmptyAsNull >> >> It tests if field (ftString) is empty (f = ''), if yes, it set the field value to null (f.Clear). > > > Apparently a IBX specific extension. > > I don't see the value of this. empty and null are different things. Not everywhere. In Oracle empty strings are Null (which is why we have special code for this situation in our business application).
That's a deviation from the standard. NULL means "we don't know", empty means "we know it is empty" Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal