diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-30 18:19:34 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-30 18:19:34 +0000 |
| commit | b2c68fab83092eb760e07c63c64274bf59f46f54 (patch) | |
| tree | 1773d134c4b68e82d1c09a79a17c9d465b8d1935 | |
| parent | 76597e533f20b700596a77dcb49403c3d0d2c791 (diff) | |
| download | sqlalchemy-b2c68fab83092eb760e07c63c64274bf59f46f54.tar.gz | |
- fix to postgres sequence quoting when using schemas
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ loaded already. this can be turned off (i.e. the old behavior) by setting passive_deletes=True on a relation(). - MySQL catches exception on "describe" and reports as NoSuchTableError - further fixes to sqlite booleans, weren't working as defaults +- fix to postgres sequence quoting when using schemas 0.3.0 - General: diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index bcbe5f670..5c78e2f52 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -530,7 +530,7 @@ class PGDefaultRunner(ansisql.ANSIDefaultRunner): # TODO: this has to build into the Sequence object so we can get the quoting # logic from it if sch is not None: - exc = "select nextval('\"%s.%s_%s_seq\"')" % (sch, column.table.name, column.name) + exc = "select nextval('\"%s\".\"%s_%s_seq\"')" % (sch, column.table.name, column.name) else: exc = "select nextval('\"%s_%s_seq\"')" % (column.table.name, column.name) c = self.proxy(exc) |
