Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{ INSERT | UPDATE | MERGE } .. SET [ Record ] doesn't take changed flags into account #4161

Closed
lukaseder opened this issue Mar 31, 2015 · 1 comment

Comments

@lukaseder
Copy link
Member

The below query shouldn't update the SOME_FIELD value:

Record record = dsl.newRecord(getTable(), entity);
record.changed(SOME_FIELD, false);
dsl.update(getTable())
   .set(record)
   .where(getTableId().eq(record.getValue(getTableId())))
   .execute();

As this is a slightly incompatible change of behaviour, it won't be merged to jOOQ 3.5.x releases

See also:
https://groups.google.com/forum/#!topic/jooq-user/DIw1KfQaCs0

@lukaseder lukaseder added this to the Version 3.6.0 milestone Mar 31, 2015
@lukaseder lukaseder changed the title UPDATE .. SET [ Record ] doesn't take changed flags into account { INSERT | UPDATE | MERGE } .. SET [ Record ] doesn't take changed flags into account Apr 1, 2015
lukaseder added a commit that referenced this issue Apr 1, 2015
@lukaseder
Copy link
Member Author

Related: #3546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant