Skip to content

Added "is null" and "is not null" comparators for Datetimes.#67

Open
montebrown wants to merge 1 commit into
rcdilorenzo:masterfrom
montebrown:add_null_comparisons_for_datetimes
Open

Added "is null" and "is not null" comparators for Datetimes.#67
montebrown wants to merge 1 commit into
rcdilorenzo:masterfrom
montebrown:add_null_comparisons_for_datetimes

Conversation

@montebrown

Copy link
Copy Markdown

They work a little bit different from other comparisons, since "HTML parameters don't usually work with a language-specific construct of nil". The passed in value for the filter is ignored and the comparison to nil/NULL is made instead.

For example, if you are filtering by parameters, you could 'add my_column_is_null' to the query string without a value - any value specified will be ignored.

This addresses #62. It only adds the null comparators for DateTimes, however, it is straightforward to add them to other data types.

 - they work a little bit different from other comparisons, since "HTML parameters don't usually work with a language-specific construct of nil". The passed in value for the filter is ignored and the comparison to nil/NULL is made instead. 
 - for example, if you are filtering by parameters, you could 'add my_column_is_null' to the query string without a value - any value specified will be ignored.

This addresses rcdilorenzo#62. It only adds the null comparators for DateTimes, however, it is straightforward to add them to other data types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant