mariano/node-db-mysql — Issue #57: Trouble with columns object
Author: boozedog
Created: 2012-02-21 20:35:55+00:00
State: open

`JSON.stringify(columns)` gives this:

[{"name":"id","type":2},
{"name":"url","type":0},
{"name":"create_ts","type":6},
{"name":"update_ts","type":6}]

but when I run the following code:

for (col in columns) {
console.log(col.name + ' ' + col.type);
}

I'm getting `undefined` for both `name` and `type` .

Any ideas? Apologies in advance if I'm missing something obvious ...