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

Reject CREATE with a duplicate id #510

Merged
merged 2 commits into from Mar 19, 2015
Merged

Reject CREATE with a duplicate id #510

merged 2 commits into from Mar 19, 2015

Commits on Mar 16, 2015

  1. Reject CREATE with a duplicate id

    Modify the memory connector to reject requests to create a record
    with a duplicate id.
    
    Add a unit-test to verify this behaviour across all connectors.
    Miroslav Bajtoš committed Mar 16, 2015
    Configuration menu
    Copy the full SHA
    902772f View commit details
    Browse the repository at this point in the history
  2. DAO: Fix updateOrCreate to set persisted:true

    Before this commit, the following code would not work:
    
        Change.updateOrCreate({...}, function(err, ch) {
          // somewhere later, modify "ch" and save the changes
          ch.save(cb);
        });
    Miroslav Bajtoš committed Mar 16, 2015
    Configuration menu
    Copy the full SHA
    6f11c2d View commit details
    Browse the repository at this point in the history