MySQLdb warnings ... what caused them?

Jeff Epler jepler at unpythonic.net
Tue May 13 10:36:57 EDT 2003


Please refer to the mysql manual..
http://www.mysql.com/doc/en/SHOW_WARNINGS.html

it appears that the warning shold actually read
    Records: 3  Duplicates ...
and that the warnings themselves can be found by a special query "show
warnings".

You could also refer to the mysql-python documentation (on my system,
/usr/share/doc/MySQL-python-0.9.1/MySQLdb-4.html) to see how to create a
cursor that does not raise an exception when a sql command has warnings.

Jeff





More information about the Python-list mailing list