[CONJS-223] Metadata column name gets sporadic corrupted Created: 2022-10-04 Updated: 2022-10-05 Resolved: 2022-10-05 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | other |
| Affects Version/s: | None |
| Fix Version/s: | 3.0.2 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/215 ISSUE 215 I have a problem with column aliases (name()) from the result metadata. If I run the same query multiple times, sometimes the names returned from meta[x].name() is corrupted, and looks like something from a memory leak. Here is some of my code: Unknown macro: { rowsAsArray}
); Unknown macro: { name}
)); I'm using connector @3.0.1 and MariaDB 10.6.7 on Ubuntu. BR, Thomas |
| Comments |
| Comment by Diego Dupin [ 2022-10-05 ] |
|
corrected with https://github.com/mariadb-corporation/mariadb-connector-nodejs/commit/6bdb463ca921cabca790dfe8f699bf77e1ca1ec6 When the metadata is parsed, buffer that comes from socket chunk is saved to avoid unnecessarily buffer parsing. The problem is that this buffer can be reused by the socket, the metadata returning then erroneous data |