On Tuesday 14 March 2006 16:25, Oleg Broytmann wrote:
> def tableExists(self, tableName):
> try:
> self.query('DESCRIBE %s' % (tableName))
> return True
> except MySQLdb.ProgrammingError, e:
> if e.args[0] == 1146: # ER_NO_SUCH_TABLE
> return False
> raise
>
> Right?
Oops, sorry, my "svn diff without whitespace" fooled me.
Yes, this is the intended patch.
--
David Faure -- [EMAIL PROTECTED], [EMAIL PROTECTED]
KDE/KOffice developer, Qt consultancy projects
Klarälvdalens Datakonsult AB, Platform-independent software solutions
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss