

def test_update_10(self):
    table1 = self.tables.mytable
    v1 = {
        table1.c.name: table1.c.myid,
    }
    v2 = {
        table1.c.name: (table1.c.name + 'foo'),
    }
    self.assert_compile(update(table1, (table1.c.myid == 12), values=v1).values(v2), 'UPDATE mytable SET name=(mytable.name || :name_1), description=:description WHERE mytable.myid = :myid_1', params={
        'description': 'test',
    })

dataset/ETHPy150Open zzzeek/sqlalchemy/test/sql/test_update.py UpdateTest.test_update_10/original