‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, November 14, 2019 3:22 PM, Mike Bayer <mike...@zzzcomputing.com> 
wrote:

> that's the driver you're using which would not be allowing keyboard interrupt 
> to go through.
>
> I just tried this with mysqlclient and pymysql and I would assume you're 
> using mysqlclient as it seems to block on keyboard interrupt:

I am using pymysql - sorry for not mentioning it. The problem was that 
KeyboardInterrupt would be raised immediately, but unfortunately the SQL 
process would keep running on the server (I tested on a huge INSERT INTO .. 
SELECT). Indeed it needs to be killed manually in interrupt handler!

Best regards,

m.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/wiK-X2ZyGuSkli8puEFLh3fYz6M0m_kbaAW6EU7Qif68MFEdpcV5Z2KzZVlxtW9fENNgdb6a-8dzZU5FPS6sAxjyQYUv6AM_Oys_AMisLUM%3D%40cahoots.pl.

Reply via email to