]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix to postgres sequence quoting when using schemas
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Oct 2006 18:19:34 +0000 (18:19 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 30 Oct 2006 18:19:34 +0000 (18:19 +0000)
CHANGES
lib/sqlalchemy/databases/postgres.py

diff --git a/CHANGES b/CHANGES
index 9b17f1648ac43eb26665f9f5905f5d7cb00ab663..acddae34f64c83671e5657901eda48031da64c4d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -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:
index bcbe5f6702cf15222da773d80199fb61c6483472..5c78e2f5201b957c1a2b79f2150269b9cdf13eba 100644 (file)
@@ -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)