diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-01-02 05:22:00 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-01-02 05:22:00 +0000 |
commit | 6980730e7d3f962768f44a1d5f5a7013d048cf85 (patch) | |
tree | 42fc5c3ec5dd7af4eae676484b18bbcc98e53cf0 /lib/sqlalchemy/databases/postgres.py | |
parent | abf2895a7826cfcbe4d43daf0f607bf7cc975097 (diff) | |
download | sqlalchemy-6980730e7d3f962768f44a1d5f5a7013d048cf85.tar.gz |
rowid->oid
Diffstat (limited to 'lib/sqlalchemy/databases/postgres.py')
-rw-r--r-- | lib/sqlalchemy/databases/postgres.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index e00d16d04..350f61b75 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -154,7 +154,7 @@ class PGSQLEngine(ansisql.ANSISQLEngine): def last_inserted_ids(self): return self.context.last_inserted_ids - def rowid_column_name(self): + def oid_column_name(self): if self.use_oids: return "oid" else: @@ -171,7 +171,7 @@ class PGSQLEngine(ansisql.ANSISQLEngine): table = compiled.statement.table cursor = proxy() if cursor.lastrowid is not None and table is not None and len(table.primary_key): - s = sql.select(table.primary_key, table.rowid_column == cursor.lastrowid) + s = sql.select(table.primary_key, table.oid_column == cursor.lastrowid) c = s.compile() cursor = proxy(str(c), c.get_params()) row = cursor.fetchone() |