summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2005-07-25 02:53:34 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2005-07-25 02:53:34 +0000
commitab2b061c5e3a093e29229efa64c1cea88b26c4fa (patch)
tree9251c265326485778e52d1edcaacf5bb3b3cd294 /lib/sqlalchemy/engine.py
parent0baed4225dd43885fdf2b0f94e6ea85b9f421e64 (diff)
downloadsqlalchemy-ab2b061c5e3a093e29229efa64c1cea88b26c4fa.tar.gz
Diffstat (limited to 'lib/sqlalchemy/engine.py')
-rw-r--r--lib/sqlalchemy/engine.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/sqlalchemy/engine.py b/lib/sqlalchemy/engine.py
index bfa1e2535..ff9a588b9 100644
--- a/lib/sqlalchemy/engine.py
+++ b/lib/sqlalchemy/engine.py
@@ -68,6 +68,11 @@ class SQLEngine(schema.SchemaEngine):
def columnimpl(self, column):
return sql.ColumnSelectable(column)
+ def last_inserted_ids(self):
+ """returns a thread-local map of the generated primary keys corresponding to the most recent
+ insert statement. keys are the names of columns."""
+ raise NotImplementedError()
+
def connect_args(self):
raise NotImplementedError()
@@ -126,12 +131,11 @@ class SQLEngine(schema.SchemaEngine):
if connection is None:
poolconn = self.connection()
c = poolconn.cursor()
- c.execute(statement, parameters)
- return c
else:
c = connection.cursor()
- c.execute(statement, parameters)
- return c
+
+ c.execute(statement, parameters)
+ return c
def log(self, msg):
print msg