felixge/node-mysql — pull request #608 by Loddan (2013-10-06 21:41:20+00:00)
Title: Identifiers array

SqlString.escapeId turns arrays to a list of identifiers as discussed in issue #524.

```js
var userId = 1;
var columns = ['username', 'email'];
var query = connection.query('SELECT ?? FROM ?? WHERE id = ?', [columns, 'users', userId], function(err, results) {
// ...
});

console.log(query.sql); // SELECT `username`, `email` FROM `users` WHERE id = 1
```