Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Classe « connection »

Méthode MySQLdb.connection.thread_id

Signature de la méthode thread_id

Description

thread_id.__doc__

Returns the thread ID of the current connection. This value
can be used as an argument to kill() to kill the thread.

If the connection is lost and you reconnect with ping(), the
thread ID will change. This means you should not get the
thread ID and store it for later. You should get it when you
need it.

Non-standard.