## instantiate cursor self.__rdb = self.__conn.cursor() ## Execute a command try : self.__rdb.execute(command) except _mysql_exceptions.Warning,e: ... ## exception handling hereBut this approach does not appear to work any long
| Subject | Written By | Posted |
|---|---|---|
| How to trap warnings? | Tim Johnson | 06/16/2011 11:53AM |
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.