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

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 = { ...@@ -297,8 +297,7 @@ var Utils = module.exports = {
case 'eq': case 'eq':
return '=' return '='
case 'ne': case 'ne':
if (val) return '!=' return val ? '!=' : 'IS NOT'
else return 'IS NOT'
case 'between': case 'between':
case '..': case '..':
return 'BETWEEN' return 'BETWEEN'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!