In Delphi 11, when the datetime type field was attempted to be returned as a date from a SQL query, it was returned as “ftwidestring.” The value was null as a result, and the variable could not be used in other queries to fetch the data.
To further understand the problem, a sample test case and document are included. NullExcptn.7z (15.4 KB)