felixge/node-mysql — pull request #213 by alexgorbatchev (2012-06-01 20:10:22+00:00)
Title: Unable to reuse objects returned by a query in another query.

This addresses the problem when trying to update rows received from query call. For example:

conn.query('SELECT * FROM users WHERE id = 1', function(err, users)
{
var user = users[0];

user.counter++;

conn.query('REPLACE INTO users SET ?', user, function(err, info) {});
});

This would cause a problem because RowDataPacket has functions and SqlString.objectToValues() would try to escape them like any other values.