diff roundup/backends/back_sqlite.py @ 3693:a775afeeee8b

Database interface fixes. - Fix a problem with wrong sort-order in RDBMS backend when a sort-attribute is also searched for. We need to preserve correct sort attribute order in that case. A test for this was added earlier. - Added forgotten fail_ok parameter to sql_commit method in sqlite backend to make tests work again. - Note that this version still fails a test for the postgresql backend.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Wed, 30 Aug 2006 09:05:30 +0000
parents f5201bbbc505
children 0d561b24ceff
line wrap: on
line diff
--- a/roundup/backends/back_sqlite.py	Wed Aug 30 08:50:44 2006 +0000
+++ b/roundup/backends/back_sqlite.py	Wed Aug 30 09:05:30 2006 +0000
@@ -1,4 +1,4 @@
-# $Id: back_sqlite.py,v 1.45 2006-08-11 00:02:12 richard Exp $
+# $Id: back_sqlite.py,v 1.46 2006-08-30 09:05:30 schlatterbeck Exp $
 '''Implements a backend for SQLite.
 
 See https://pysqlite.sourceforge.net/ for pysqlite info
@@ -288,7 +288,7 @@
     def __repr__(self):
         return '<roundlite 0x%x>'%id(self)
 
-    def sql_commit(self):
+    def sql_commit(self, fail_ok=False):
         ''' Actually commit to the database.
 
             Ignore errors if there's nothing to commit.

Roundup Issue Tracker: http://roundup-tracker.org/