diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-08-31 20:38:14 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-08-31 20:38:14 +0000 |
| commit | 3d38969fd4f88d996d438df63f7cbb1833b63429 (patch) | |
| tree | 33f33709c5abcfad827bcc0460f9a51558e36542 /lib/sqlalchemy/engine | |
| parent | f3480a7ff4d0994bf201f830f31f416a7b1e9f0f (diff) | |
| download | sqlalchemy-3d38969fd4f88d996d438df63f7cbb1833b63429.tar.gz | |
- Inserting NULL into a primary key + foreign key column
will allow the "not null constraint" error to raise,
not an attempt to execute a nonexistent "col_id_seq"
sequence. [ticket:1516]
- autoincrement SELECT statements, i.e. those which
select from a procedure that modifies rows, now work
with server-side cursor mode (the named cursor isn't
used for such statements.)
Diffstat (limited to 'lib/sqlalchemy/engine')
| -rw-r--r-- | lib/sqlalchemy/engine/default.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py index 935d1e087..78164e459 100644 --- a/lib/sqlalchemy/engine/default.py +++ b/lib/sqlalchemy/engine/default.py @@ -254,8 +254,8 @@ class DefaultExecutionContext(base.ExecutionContext): else: self.statement = statement self.isinsert = self.isupdate = self.isdelete = False - self.cursor = self.create_cursor() self.should_autocommit = self.should_autocommit_text(statement) + self.cursor = self.create_cursor() else: # no statement. used for standalone ColumnDefault execution. self.statement = self.compiled = None |
