Closed GoogleCodeExporter closed 9 years ago
Thanks a lot! That's great. I only had to change the error message format (a
space
was missing).
> patch for update...where semantics
I'm not sure about that, how do you plan to support updating multiple columns?
Original comment by thomas.t...@gmail.com
on 22 Sep 2009 at 7:27
db.from(p)
.set(p.unitsInStock).to(10)
.set(p.unitPrice).to(123.4)
.where(p.productName).is("Chang")
.update();
I'm not sure if this works, just thinking out loud.
Thanks for applying the patch! :-)
Original comment by dmoeb...@gmx.net
on 22 Sep 2009 at 7:32
I like your proposal. Another idea is using something similar to the existing
select(new Object()) syntax:
db.from(c).
where(p.productName).is("Chang").
update(new Prouct() {{
unitsInStock = 10;
unitPrice = 123.4;
}});
Original comment by thomas.t...@gmail.com
on 25 Sep 2009 at 3:43
The patch for merge and update is included in version 1.1.119
Original comment by thomas.t...@gmail.com
on 26 Sep 2009 at 11:34
Thanks for including my patches. :-)
Your proposal is better than mine because the compiler checks the value
assignments.
Original comment by dmoeb...@gmx.net
on 27 Sep 2009 at 8:23
Original issue reported on code.google.com by
dmoeb...@gmx.net
on 21 Sep 2009 at 1:08Attachments: