Allow inserting nothing
Created by: dmfay
In a similar vein to #167:
db.mytable.insert([], function (err, rows) {...})
currently generates a syntax error since it's emitting INSERT INTO mytable (...) VALUES ()
. In some situations where the number of rows I want to insert might be zero, it's easier on the application side to just pass whatever I have through and look at the resulting rows to see what I got (leaving the error for an actual problem with the insert) instead of trying to juggle conditionals and async code.