Skip to content

Commit

Permalink
Adds IN support as well dsferruzza#10
Browse files Browse the repository at this point in the history
  • Loading branch information
cl-joshcole committed Jul 9, 2014
1 parent 871bc12 commit 4967b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simpleSqlParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
}

if (/^(AND|OR)$/i.test(tokenValue)) return {type: 'logic', value: tokenValue};
if (/^(IS|NOT|LIKE)$/i.test(tokenValue)) return {type: 'operator', value: tokenValue};
if (/^(IN|IS|NOT|LIKE)$/i.test(tokenValue)) return {type: 'operator', value: tokenValue};
else return {type: 'word', value: tokenValue};
},

Expand Down

0 comments on commit 4967b77

Please sign in to comment.