Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7jUQrypvpE1ix1k7V
14 lines
1.0 KiB
Plaintext
14 lines
1.0 KiB
Plaintext
EntityManager: find, edit title, commit (2 statements)
|
|
select b1_0.isbn,b1_0.price,b1_0.publisher_id,b1_0.title,b1_0.version,b1_0.views from book b1_0 where b1_0.isbn=?
|
|
select version from final table (update book set price=?,publisher_id=?,title=?,version=?,views=? where isbn=? and version=?)
|
|
title in database afterwards: Changed via EntityManager
|
|
|
|
EntityAgent: get, edit title, commit (1 statement)
|
|
select b1_0.isbn,b1_0.price,b1_0.publisher_id,b1_0.title,b1_0.version,b1_0.views from book b1_0 where b1_0.isbn=?
|
|
title in database afterwards: Book 2
|
|
|
|
EntityAgent: get, edit title, update(book), commit (2 statements)
|
|
select b1_0.isbn,b1_0.price,b1_0.publisher_id,b1_0.title,b1_0.version,b1_0.views from book b1_0 where b1_0.isbn=?
|
|
select version from final table (update book set version=case when price is distinct from ? or publisher_id is distinct from ? or title is distinct from ? then ? else version end,price=?,publisher_id=?,title=?,views=? where isbn=? and version=?)
|
|
title in database afterwards: Changed via EntityAgent + update()
|