martintajur/node-mysql-activerecord — Issue #1: When I pass an object with a null property, I get a misformed sql statement
Author: jonathanpuckey
Created: 2012-03-06 17:03:49+00:00
State: open

When I pass an object with a null property, I get a misformed sql statement:

db.where({ id: node.id })
.update('nodes', {something: 1, somethingElse: null}, function(err) {
console.log(err);
});

Produces something like:

UPDATE `nodes` SET `something`=1, WHERE `id`=4

Note the extraneous comma after `something`=1