Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Oleg Broytman <phd@ph...> - 2009-12-20 15:41:20
|
Hi! On Fri, Dec 18, 2009 at 01:19:25AM +0100, Petr Jake?? wrote: > File > "/usr/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/firebird/firebirdconnection.py", > line 120, in _queryAddLimitOffset > match = cls.limit_re.match(query) > AttributeError: class FirebirdConnection has no attribute 'limit_re' This is the patch that I think fixes the problem: Index: firebirdconnection.py =================================================================== --- firebirdconnection.py (revision 4047) +++ firebirdconnection.py (working copy) @@ -10,6 +10,8 @@ dbName = 'firebird' schemes = [dbName] + limit_re = re.compile('^\s*(select )(.*)', re.IGNORECASE) + def __init__(self, host, db, user='sysdba', password='masterkey', autoCommit=1, dialect=None, role=None, charset=None, **kw): @@ -18,8 +20,6 @@ import kinterbasdb self.module = kinterbasdb - self.limit_re = re.compile('^\s*(select )(.*)', re.IGNORECASE) - self.host = host self.db = db self.user = user Oleg. -- Oleg Broytman http://phd.pp.ru/ phd@... Programmers don't die, they just GOSUB without RETURN. |