Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata column name gets sporadic corrupted #215

Closed
tjeck46 opened this issue Oct 4, 2022 · 3 comments
Closed

Metadata column name gets sporadic corrupted #215

tjeck46 opened this issue Oct 4, 2022 · 3 comments

Comments

@tjeck46
Copy link

tjeck46 commented Oct 4, 2022

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.
There seems to be a correlation between the problem and the size of the resultset, because if I set a limit in the query of fx 30 rows, there is no problem. In my case I only saw the problem when the result was more than about 300 rows.

Here is some of my code:
const r1 = await dbc.query({ rowsAsArray:true, sql:'SELECT col1, col2, col3 FROM table1', });
const cols = r1.meta.map(c => ({ name:c.name(), dataType:c.columnType }));

I'm using connector @3.0.1 and MariaDB 10.6.7 on Ubuntu.
There seems to be no problems with version @2.5.6.

BR, Thomas

@tjeck46
Copy link
Author

tjeck46 commented Oct 4, 2022

After I installed version @2.5.6 and then reinstalled @3.0.1, the problem seems to have disappered. I'm not sure if this is good or bad.. :-)

@rusher
Copy link
Collaborator

rusher commented Oct 4, 2022

I think i've found the problem, but need to confirms that tomorrow

@rusher
Copy link
Collaborator

rusher commented Oct 5, 2022

confirmed. This will be corrected in next version.

@rusher rusher closed this as completed Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants