-
Committer:
Geert Vanderkelen
-
Date:
2010-01-22 15:50:00 UTC
-
Revision ID:
geert.vanderkelen@sun.com-20100122155000-tg6ppo1b4rvmz4pn
Implementing Raise-On-Warnings
* It is now possible to raise warnings reported by MySQL as excpetions in
Python. This is done by setting raise_on_warnings to True when connecting.
connect(raise_on_warnings=True,..)
or it can be toggled by the application:
db.set_warnings(raise_on_warnings)
* Cursor has some changes and _get_warnings was removed. It now uses self.db
to get the information. A non-bufering cursor (default) will raise the
exceptions on warnigns after result is read; buffered cursors will raise when
the SELECT statement is executed.
* Test cases have been updated.
* Some test cases have been fixed in relation to BINARY fields.