Mercurial > p > roundup > code
diff roundup/backends/back_postgresql.py @ 3863:1d47f70a99bf
Seems like not all versions of postgres-drivers contain the string "ERROR"...
...in error-messages. In that case creating the database (when it
already exists) fails. This fixes the problem for me.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Thu, 09 Aug 2007 08:58:42 +0000 |
| parents | bb30bbfc7cdd |
| children | c8899c4bf6ad |
line wrap: on
line diff
--- a/roundup/backends/back_postgresql.py Wed Aug 01 12:42:31 2007 +0000 +++ b/roundup/backends/back_postgresql.py Thu Aug 09 08:58:42 2007 +0000 @@ -1,4 +1,4 @@ -#$Id: back_postgresql.py,v 1.38 2007-06-21 07:35:50 schlatterbeck Exp $ +#$Id: back_postgresql.py,v 1.39 2007-08-09 08:58:42 schlatterbeck Exp $ # # Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <andrey@micro.lt> # @@ -79,7 +79,7 @@ response = str(err).split('\n')[0] if response.find('FATAL') != -1: raise RuntimeError, response - elif response.find('ERROR') != -1: + else: msgs = [ 'is being accessed by other users', 'could not serialize access due to concurrent update',
