Assigning nil is equivalent to assigning NULL.
When we assign NULL, server does not use Default value. Server thinks that we wanted the value to be NULL overriding the default value.
So it is desirable to assign DEFAULT. This can be done either by omitting the assignment in SQL statement of specifically assigining DEFAULT.
Now, how do we do it in ADO. Instead of using NIL, use AdoDefault().
AdoDefault() and AdoNull() are functions provided by FWH for this purpose.
↧