

def test_update_from_multitable_same_name_mysql(self):
    (users, addresses) = (self.tables.users, self.tables.addresses)
    self.assert_compile(users.update().values(name='newname').values({
        addresses.c.name: 'new address',
    }).where((users.c.id == addresses.c.user_id)), 'UPDATE users, addresses SET addresses.name=%s, users.name=%s WHERE users.id = addresses.user_id', checkparams={
        'addresses_name': 'new address',
        'name': 'newname',
    }, dialect='mysql')

dataset/ETHPy150Open zzzeek/sqlalchemy/test/sql/test_update.py UpdateFromCompileTest.test_update_from_multitable_same_name_mysql/original