Update broken
The following code:
from uuid import UUID, uuid4
@table
class Person:
id : int # TODO change for UUID here
name : str
age : int
q = Person.update(dict(id=uuid4()), where=Person.c.name.eq("Dikjstra"))
Produce the code:
Update: UPDATE Person SET Person.id = ? WHERE Person.name = ?
-- ↖{'0': 'Dikjstra', '1': 'Dikjstra', '2': UUID('17387325-9681-426d-a711-d90c1ade9827')}
It is incorrect for the two following reason:
- Placeholder duplicated
- Person.id should be just id.