Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

montebrown
Copy link

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.

None yet

1 participant