Mercurial > p > roundup > code
comparison roundup/backends/back_postgresql.py @ 3047:d3a5e382d44a maint-0.7
merge from maint-0-8
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 04 Jan 2005 01:38:12 +0000 |
| parents | adce02da25b7 |
| children | e074c641cb5e |
comparison
equal
deleted
inserted
replaced
| 3044:72399c7c9bcc | 3047:d3a5e382d44a |
|---|---|
| 87 return 0 | 87 return 0 |
| 88 | 88 |
| 89 class Database(rdbms_common.Database): | 89 class Database(rdbms_common.Database): |
| 90 arg = '%s' | 90 arg = '%s' |
| 91 | 91 |
| 92 # used by some code to switch styles of query | |
| 93 implements_intersect = 1 | |
| 94 | |
| 92 def sql_open_connection(self): | 95 def sql_open_connection(self): |
| 93 db = getattr(self.config, 'POSTGRESQL_DATABASE') | 96 db = getattr(self.config, 'POSTGRESQL_DATABASE') |
| 94 try: | 97 try: |
| 95 conn = psycopg.connect(**db) | 98 conn = psycopg.connect(**db) |
| 96 except psycopg.OperationalError, message: | 99 except psycopg.OperationalError, message: |
