Git Product home page Git Product logo

Comments (6)

methane avatar methane commented on July 29, 2024

Are you passing MySQLdb's cursor to pool.execute?
It's impossible.

from tornado-mysql.

kkoston avatar kkoston commented on July 29, 2024

Yes. I am passing the cursor to pool.execute. According to what I can see in the code (pools.py line 113) it should be possible.
Also tried passing the cursor to Pool constructor (pools.py, line 28) connect_kwargs - MySQL's connect function allows passing it via "cursorclass" argument. Getting exactly the same error here.

from tornado-mysql.

methane avatar methane commented on July 29, 2024

According to what I can see in the code (pools.py line 113) it should be possible.

No.

from tornado-mysql.

kkoston avatar kkoston commented on July 29, 2024

Hmm, the what is the reason for it being there? :)

from tornado-mysql.

methane avatar methane commented on July 29, 2024

async code and sync code is incompatible.
That's very basic.

from tornado-mysql.

kkoston avatar kkoston commented on July 29, 2024

I realize that blocking code is not compatible with non-blocking code but somehow do not see how this relates to my question. Is using DictCursor a problem? If so, then why 'cursor' argument was added to the execute method?

from tornado-mysql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.