col)
prop = mapper._columntoproperty[col]
- history = attributes.get_state_history(
- state, prop.key,
- attributes.PASSIVE_NO_INITIALIZE
+ history = state.manager[prop.key].impl.get_history(
+ state, state_dict, attributes.PASSIVE_NO_INITIALIZE
)
if history.added:
params[col.key] = history.added[0]
# in a different table than the one
# where the version_id_col is.
for prop in mapper._columntoproperty.values():
- history = attributes.get_state_history(
- state, prop.key,
+ history = state.manager[prop.key].impl.get_history(
+ state, state_dict,
attributes.PASSIVE_NO_INITIALIZE)
if history.added:
hasdata = True
else:
prop = mapper._columntoproperty[col]
- history = attributes.get_state_history(
- state, prop.key,
+ history = state.manager[prop.key].impl.get_history(
+ state, state_dict,
attributes.PASSIVE_NO_INITIALIZE)
if history.added:
if isinstance(history.added[0],
elif col in post_update_cols:
prop = mapper._columntoproperty[col]
- history = attributes.get_state_history(
- state, prop.key,
+ history = state.manager[prop.key].impl.get_history(
+ state, state_dict,
attributes.PASSIVE_NO_INITIALIZE)
if history.added:
value = history.added[0]