"""
-
@property
def bind(self):
return self.connection
self.batch_separator)
def _exec(self, construct, *args, **kw):
- super(MSSQLImpl, self)._exec(construct, *args, **kw)
+ result = super(MSSQLImpl, self)._exec(construct, *args, **kw)
if self.as_sql and self.batch_separator:
self.static_output(self.batch_separator)
+ return result
def emit_begin(self):
self.static_output("BEGIN TRANSACTION" + self.command_terminator)
self.batch_separator)
def _exec(self, construct, *args, **kw):
- super(OracleImpl, self)._exec(construct, *args, **kw)
+ result = super(OracleImpl, self)._exec(construct, *args, **kw)
if self.as_sql and self.batch_separator:
self.static_output(self.batch_separator)
+ return result
def emit_begin(self):
self._exec("SET TRANSACTION READ WRITE")
named after the column and look like the FK indexes. Pull request
courtesy Johannes Erdfelt.
+ .. change::
+ :tags: bug, mssql, oracle
+ :tickets: 253
+
+ Repaired a regression in both the MSSQL and Oracle dialects whereby
+ the overridden ``_exec()`` method failed to return a value, as is
+ needed now in the 0.7 series.
+
.. changelog::
:version: 0.7.1
:released: December 3, 2014
class UpdateRevTest(TestBase):
+ __backend__ = True
@classmethod
def setup_class(cls):
self.connection.close()
def _assert_heads(self, heads):
- eq_(self.context.get_current_heads(), heads)
+ eq_(set(self.context.get_current_heads()), set(heads))
eq_(self.updater.heads, set(heads))
def test_update_none_to_single(self):