不要怂,就是干,撸起袖子干!

Commit 9a759b95 by Andreas Lubbe

refactored IS NOT NULL logic to be more efficient

1 parent 0d7bab62
Showing with 1 additions and 2 deletions
......@@ -297,8 +297,7 @@ var Utils = module.exports = {
case 'eq':
return '='
case 'ne':
if (val) return '!='
else return 'IS NOT'
return val ? '!=' : 'IS NOT'
case 'between':
case '..':
return 'BETWEEN'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!