-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle NULL TDates #116
Comments
Is there any chance the user get's to see this date? It's about the return date right? |
nil just means "no date set", so e.g. for the return date, that the book was not returned yet, so replacing it by 0 or minus somewhat would lead to wrong values... |
No the user should not see this date if we do everything rigth. Yes the return date. |
There is a "Null" value for doubles, I'll check if there is anything compareable for TDate.. |
There is not, so the database group will consider every date that is =-1, so =30.12.1899 as NULL value. |
Please use uDBConstants and null check like this: |
-693594 is the final value |
I will apply to code... |
Should the nil date be pretty as plain text or as date?
0 as plain Text would be 30.12.1899 as date
-693594 as plain text would be 00.00.0000 as date
The text was updated successfully, but these errors were encountered: