aio-libs / aio-libs/aiomysql

Warnings are thrown since last version

Aperta
#103 13 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement pymysql-port
Lingua principale
Python
Stelle
1.9k
Fork
272
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Since I updated to the latest version aiomysql throws me warnings when I use a "IF NOT EXISTS" or "IGNORE" statement instead of just discarding them

```
/usr/local/lib/python3.5/dist-packages/aiomysql/cursors.py:461: Warning: Can't create database 'srv_163305530364788736'; database exists
yield from self._do_get_result()
```

Executed code:
`await cur.execute("CREATE DATABASE IF NOT EXISTS srv_163305530364788736;")`

Is there any way to tell aiomysql/pymysql to just discard this?

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.