Mercurial > p > roundup > code
diff roundup/backends/back_gadfly.py @ 1195:e0032f4ab334
added missing stringFind to sql backends
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 24 Sep 2002 01:59:28 +0000 |
| parents | 08a13a84ed43 |
| children | bc3bc3248dd1 |
line wrap: on
line diff
--- a/roundup/backends/back_gadfly.py Tue Sep 24 01:36:04 2002 +0000 +++ b/roundup/backends/back_gadfly.py Tue Sep 24 01:59:28 2002 +0000 @@ -1,4 +1,4 @@ -# $Id: back_gadfly.py,v 1.25 2002-09-23 06:48:34 richard Exp $ +# $Id: back_gadfly.py,v 1.26 2002-09-24 01:59:28 richard Exp $ __doc__ = ''' About Gadfly ============ @@ -95,6 +95,16 @@ return None raise + def sql_fetchall(self): + ''' Fetch a single row. If there's nothing to fetch, return []. + ''' + try: + return self.cursor.fetchall() + except gadfly.database.error, message: + if message == 'no more results': + return [] + raise + def save_dbschema(self, schema): ''' Save the schema definition that the database currently implements '''
