aio-libs / aio-libs/aioodbc

MySQL, error in my_thread_global_end

Aperta
#79 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
326
Fork
62
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi! I have some problem.
I use on linux system:
- unixODBC-2.3.4;
- mysql-5.6.35;
- myodbc-5.2.7;
- python-3.6.0;
- pyodbc-4.0.11;
- aioodbc-0.0.3.

For any query I get an error message, not exception:
```
Error in my_thread_global_end(): 2 threads didn't exit
```
Query is executed correctly, only error message on console.

Code is very simple, from example, with pool and without pool:
```
dsn = f'Driver=myodbc;User={USER};Password={PASSWORD};Database={DB};'

async with aioodbc.create_pool(dsn=dsn, loop=loop) as pool:
async with pool.acquire() as conn:
async with conn.cursor() as cur:
await cur.execute('SHOW TABLES;')
val = await cur.fetchone()
```

Same code with just pyodbc runs without error message:
```
import pyodbc

cnxn = pyodbc.connect(dsn)
cursor = cnxn.cursor()
cursor.execute('SHOW TABLES;')
r = cursor.fetchall()
```

MySQL settings is default. Why can this error message?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.