MySQL from python - dropping a database IF EXISTS

Fredrik Lundh fredrik at pythonware.com
Tue Dec 5 01:25:04 EST 2006


Ben wrote:

> Ah well - I turned off warnings as a solution. Its a bit f a bodge, but
> it works :-)

according to the documentation, the database does generate a "note" when 
you do this:

     http://dev.mysql.com/doc/refman/5.0/en/drop-table.html

and notes can be turned off independently of warnings, it seems:

     http://dev.mysql.com/doc/refman/5.0/en/show-warnings.html

</F>




More information about the Python-list mailing list