summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/postgres.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-13 00:24:54 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-13 00:24:54 +0000
commitc5e1abc7f7adce841775ea92b72bcf95207027af (patch)
treeb406fd4e6ede57ed8805a40a909c3c69207d3414 /lib/sqlalchemy/databases/postgres.py
parent2ce45d70c7e499fd6c239d963f50cd839b28629b (diff)
downloadsqlalchemy-c5e1abc7f7adce841775ea92b72bcf95207027af.tar.gz
refactor to Compiled.get_params() to return new ClauseParameters object, a more intelligent bind parameter dictionary that does type conversions late and preserves the unconverted value; used to fix mappers not comparing correct value in post-fetch [ticket:110]
removed pre_exec assertion from oracle/firebird regarding "check for sequence/primary key value" fix to Unicode type to check for null, fixes [ticket:109] create_engine() now uses genericized parameters; host/hostname, db/dbname/database, password/passwd, etc. for all engine connections fix to select([func(column)]) so that it creates a FROM clause to the column's table, fixes [ticket:111] doc updates for column defaults, indexes, connection pooling, engine params unit tests for the above bugfixes
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r--lib/sqlalchemy/databases/postgres.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py
index db20b636c..72d426012 100644
--- a/lib/sqlalchemy/databases/postgres.py
+++ b/lib/sqlalchemy/databases/postgres.py
@@ -181,7 +181,7 @@ class PGSQLEngine(ansisql.ANSISQLEngine):
self.version = 1
except:
self.version = 1
- self.opts = opts or {}
+ self.opts = self._translate_connect_args(('host', 'database', 'user', 'password'), opts)
if self.opts.has_key('port'):
if self.version == 2:
self.opts['port'] = int(self.opts['port'])