Mercurial > p > roundup > code
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 3692:8e52157e2073 | 3693:a775afeeee8b |
|---|---|
| 1 # $Id: back_sqlite.py,v 1.45 2006-08-11 00:02:12 richard Exp $ | 1 # $Id: back_sqlite.py,v 1.46 2006-08-30 09:05:30 schlatterbeck Exp $ |
| 2 '''Implements a backend for SQLite. | 2 '''Implements a backend for SQLite. |
| 3 | 3 |
| 4 See https://pysqlite.sourceforge.net/ for pysqlite info | 4 See https://pysqlite.sourceforge.net/ for pysqlite info |
| 5 | 5 |
| 6 | 6 |
| 286 raise | 286 raise |
| 287 | 287 |
| 288 def __repr__(self): | 288 def __repr__(self): |
| 289 return '<roundlite 0x%x>'%id(self) | 289 return '<roundlite 0x%x>'%id(self) |
| 290 | 290 |
| 291 def sql_commit(self): | 291 def sql_commit(self, fail_ok=False): |
| 292 ''' Actually commit to the database. | 292 ''' Actually commit to the database. |
| 293 | 293 |
| 294 Ignore errors if there's nothing to commit. | 294 Ignore errors if there's nothing to commit. |
| 295 ''' | 295 ''' |
| 296 try: | 296 try: |
