We have a lot of legacy database tables that store dates as numbers. Using type="date" sqlStorageStrategy="number" sqlDateFormat="yyyyMMdd" works great, except when trying to create a filter to select records where the date field in the table is zero (equivalent to null).
Since the field is defined as type="date" the FilterBuilder wants a date or range to be entered as criteria. Selecting "is null" for the criteria operator results in "dateField IS NULL" being included in the where clause instead of "dateField = 0".
Shouldn't sqlStorageStrategy="number" indicate that the comparison should be =0 instead of IS NULL?
Is there some other way to get the result we're after?
Since the field is defined as type="date" the FilterBuilder wants a date or range to be entered as criteria. Selecting "is null" for the criteria operator results in "dateField IS NULL" being included in the where clause instead of "dateField = 0".
Shouldn't sqlStorageStrategy="number" indicate that the comparison should be =0 instead of IS NULL?
Is there some other way to get the result we're after?
Comment