brianloveswords / streamsql

A streaming, backend agnostic SQL ORM heavily inspired by levelup
MIT License
67 stars 7 forks source link

Try update if insert failed due to a missing field with no default #12

Closed ghost closed 10 years ago

ghost commented 10 years ago

This is a small change that allows the mysql driver to attempt an update after failing an insert due to a missing a required field. Since that field may well already have a value in an existing row, this isn't necessarily an error condition and the update should still be attempted. I think.

brianloveswords commented 10 years ago

v0.5.2 pushed to NPM!