From 6980730e7d3f962768f44a1d5f5a7013d048cf85 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 2 Jan 2006 05:22:00 +0000 Subject: rowid->oid --- lib/sqlalchemy/databases/postgres.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/databases/postgres.py') 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() -- cgit v1.2.1