Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
see https://github.com/mariadb-corporation/mariadb-connector-nodejs/issues/217
Actual implementation return meta as enumerable property of resultset.
example:
const res = await connection.query('select * from animals'); |
console.log(res):
|
// [
|
// { id: 1, name: 'sea lions' },
|
// { id: 2, name: 'bird' },
|
// meta: [ ... ]
|
// ]
|
|
A better solution would be to still have meta property, but nonenumerable:
const res = await connection.query('select * from animals'); |
console.log(res):
|
// res : [
|
// { id: 1, name: 'sea lions' },
|
// { id: 2, name: 'bird' }
|
// ]
|
const meta = res.meta; |
// meta: [ ... ]
|
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
issue.field.resolutiondate | 2022-10-10 16:14:59.0 | 2022-10-10 16:14:59.234 |
Component/s | configuration [ 15621 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 3.1.0 [ 28468 ] | |
Fix Version/s | 3.0.2 [ 26078 ] |