On Wed, Mar 08, 2006 at 03:12:32PM +0100, David Faure wrote:
> On Tuesday 21 February 2006 15:32, David Faure 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
After applying the patch I got
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
SyntaxError. You probably mean
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?
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.
-------------------------------------------------------
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&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss