MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update_literal_binds

Method test_update_literal_binds

test/sql/test_update.py:180–191  ·  test/sql/test_update.py::UpdateTest.test_update_literal_binds
(self)

Source from the content-addressed store, hash-verified

178 )
179
180 def test_update_literal_binds(self):
181 table1 = self.tables.mytable
182
183 stmt = (
184 table1.update().values(name=class="st">"jack").where(table1.c.name == class="st">"jill")
185 )
186
187 self.assert_compile(
188 stmt,
189 class="st">"UPDATE mytable SET name=&class="cm">#x27;jack' WHERE mytable.name = 'jill'",
190 literal_binds=True,
191 )
192
193 def test_update_custom_key_thing(self):
194 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