MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_update_literal_binds

Method test_update_literal_binds

test/sql/test_update.py:178–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

176 )
177
178 def test_update_literal_binds(self):
179 table1 = self.tables.mytable
180
181 stmt = (
182 table1.update().values(name="jack").where(table1.c.name == "jill")
183 )
184
185 self.assert_compile(
186 stmt,
187 "UPDATE mytable SET name='jack' WHERE mytable.name = 'jill'",
188 literal_binds=True,
189 )
190
191 def test_update_custom_key_thing(self):
192 table1 = self.tables.mytable

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
whereMethod · 0.45
valuesMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected