attribute, causing the construct to not compile
correctly a second time. [ticket:2545]
+ - [bug] Fixed bug where reflection of primary key constraint
+ would double up columns if the same constraint/table
+ existed in multiple schemas.
+
0.7.8
=====
- orm
# Primary key constraints
s = sql.select([C.c.column_name, TC.c.constraint_type],
sql.and_(TC.c.constraint_name == C.c.constraint_name,
+ TC.c.table_schema == C.c.table_schema,
C.c.table_name == tablename,
C.c.table_schema == owner)
)
if context._is_implicit_returning:
context._fetch_implicit_returning(result)
result.close(_autoclose_connection=False)
+ result._metadata = None
elif not context._is_explicit_returning:
result.close(_autoclose_connection=False)
+ result._metadata = None
elif result._metadata is None:
# no results, get rowcount
# (which requires open cursor on some drivers
_process_row = RowProxy
out_parameters = None
_can_close_connection = False
+ _metadata = None
def __init__(self, context):
self.context = context
def _init_metadata(self):
metadata = self._cursor_description()
- if metadata is None:
- self._metadata = None
- else:
+ if metadata is not None:
self._metadata = ResultMetaData(self, metadata)
def keys(self):
def _simple_fixture(self):
return Table('test_table', self.metadata,
- Column('id', Integer, primary_key=True),
+ Column('id', Integer, primary_key=True, autoincrement=False),
Column('data', String(50))
)
)
assert r.closed
assert r.is_insert
- assert r.returns_rows
+ assert not r.returns_rows
__all__ = ('InsertSequencingTest', 'InsertBehaviorTest')