Sql: construct queries properly when condition involves nulls
Merge pull request #3 from keynslug/master

Sql: construct queries properly when condition involves nulls