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

Aiomysql query returns data from another query #783

Closed
1 task done
Vinc135 opened this issue May 2, 2022 · 6 comments
Closed
1 task done

Aiomysql query returns data from another query #783

Vinc135 opened this issue May 2, 2022 · 6 comments
Labels

Comments

@Vinc135
Copy link

Vinc135 commented May 2, 2022

Describe the bug

Hello. I have the same error as this guy from 2016:
#88

When two connections are creating at the same time and selecting a data from the database, the results are switching. Exactly like this guy from the other issue. I had the error at version 0.1.0 and then downgraded the version to 0.0.22 and now this error is already gone but sometimes it happens again. Pls help me

To Reproduce

Creating a pool and then creating two cursor in different files at the same time like with an event and selecting two datas from two different tables. Then fetch the results.

Expected behavior

I expect that I get the result I selected from the table.

Logs/tracebacks

I get the result from the other connection, which selected an other data from an other table.

Python Version

$ python --version
3.10.2

aiomysql Version

$ python -m pip show aiomysql
First 0.1.0 and after downgrading 0.0.22

PyMySQL Version

$ python -m pip show PyMySQL
0.9.3

SQLAlchemy Version

$ python -m pip show sqlalchemy

OS

I dont know on which OS my server runs.

Database type and version

SELECT VERSION();
('10.6.7-MariaDB-1:10.6.7+maria~bionic',)

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@Vinc135 Vinc135 added the bug label May 2, 2022
@Vinc135
Copy link
Author

Vinc135 commented May 3, 2022

The error is back, but I am using 0.0.22

@Vinc135 Vinc135 closed this as completed May 4, 2022
@Nothing4You
Copy link
Collaborator

Nothing4You commented May 4, 2022

Hi,

sorry for the late response.

If you're still experiencing this, can you provide a reproducible example?

Are you using multiple cursors from the same connection or are you using different connections?
Multiple cursors from the same connection are just pointing to the same data, see also #24.

@Vinc135
Copy link
Author

Vinc135 commented May 4, 2022

Hello. No my friend helped me and the error is gone now

@rsking01
Copy link

rsking01 commented Jan 7, 2023

Hello. No my friend helped me and the error is gone now

Hello, I faced the same problem. What helped you solve it?

@yujiacheng12138
Copy link

你好。不,我的朋友帮助了我,错误现在消失了

Hello. No my friend helped me and the error is gone now

Hello, I faced the same problem,How was it resolved?

@yujiacheng12138
Copy link

@Vinc135 help!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants