from ..engine import cursor as _cursor
from ..sql import operators
from ..sql.elements import BooleanClauseList
-from ..sql.selectable import LABEL_STYLE_TABLENAME_PLUS_COL
def _save_obj(base_mapper, states, uowtransaction, single=False):
if toload_now:
state.key = base_mapper._identity_key_from_state(state)
- stmt = future.select(mapper).set_label_style(
- LABEL_STYLE_TABLENAME_PLUS_COL
- )
+ stmt = future.select(mapper)
loading._load_on_ident(
uowtransaction.session,
stmt,
expected_eager_defaults and not expect_returning,
[
CompiledSQL(
- "SELECT test.foo AS test_foo "
+ "SELECT test.foo "
"FROM test WHERE test.id = :pk_1",
[{"pk_1": 1}],
),
CompiledSQL(
- "SELECT test.foo AS test_foo "
+ "SELECT test.foo "
"FROM test WHERE test.id = :pk_1",
[{"pk_1": 2}],
),
expected_eager_defaults and not expect_returning,
[
CompiledSQL(
- "SELECT test.foo AS test_foo "
+ "SELECT test.foo "
"FROM test WHERE test.id = :pk_1",
[{"pk_1": 1}],
),
CompiledSQL(
- "SELECT test.foo AS test_foo "
+ "SELECT test.foo "
"FROM test WHERE test.id = :pk_1",
[{"pk_1": 2}],
),
],
),
CompiledSQL(
- "SELECT test.bar AS test_bar "
+ "SELECT test.bar "
"FROM test WHERE test.id = :pk_1",
[{"pk_1": 1}],
),
CompiledSQL(
- "SELECT test.bar AS test_bar "
+ "SELECT test.bar "
"FROM test WHERE test.id = :pk_1",
[{"pk_1": 2}],
),