CraZySacX / node-jdbc

JDBC Wrapper for node.js
140 stars 106 forks source link

toObjectArray uses getColumnLabelSync(i) , fallback to #180

Open jfseb opened 6 years ago

jfseb commented 6 years ago

When using a jdbc driver/db which does not fill the column labels, the result of toObjArray() are mapped to [{ null : "last_value"}, { null : "last_value"}]

suggest to amend to md.getColumnLabelSync(i) || md.getColumnNameSync(i) to still yield an appropriate map in this case.