[CONJS-234] Result seems to have an extra blank row Created: 2023-01-02 Updated: 2023-01-23 Resolved: 2023-01-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | other |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Tom Miller | Assignee: | Diego Dupin |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows and Linux : 10.6.5 / 10.6.7 |
||
| Description |
|
I do a select statement and loop through it, there always seems to be an extra blank row. So I have to check for the "key" to see if it is undefined, so my loop ignores the last row. I hope I have my code right and you don't mean to have a blank row at the bottom. dlog is a console.log thingy that runs (!production)
|
| Comments |
| Comment by Diego Dupin [ 2023-01-20 ] | ||||
|
Query result is an array with an additional meta property. using "for (var k in emailAttchData)" meta property will be listed. There are 2 solutions :
hmm, metaEnumerable default to false already, it would seems you use an old version of connector, could you confirm ? |