

def test_update_ordered_parameters_1(self):
    table1 = self.tables.mytable
    values = [(table1.c.name, (table1.c.name + 'lala')), (table1.c.myid, func.do_stuff(table1.c.myid, literal('hoho')))]
    self.assert_compile(update(table1, ((table1.c.myid == func.hoho(4)) & (table1.c.name == ((literal('foo') + table1.c.name) + literal('lala')))), preserve_parameter_order=True, values=values), 'UPDATE mytable SET name=(mytable.name || :name_1), myid=do_stuff(mytable.myid, :param_1) WHERE mytable.myid = hoho(:hoho_1) AND mytable.name = :param_2 || mytable.name || :param_3')

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