comdb2
comdb2 copied to clipboard
Throw errors from sp for failed inserts
Throw errors on db:insert() failures in lua/sp.c:
- from prepare, ex. wrong column name
- from executing insert, ex. bad data conversion
- from emitting error out of range -- fetch correct error
Signed-off-by: Adi Zaimi [email protected]
This needs to be on an option and disabled by legacy_tunables
This needs to be on an option and disabled by
legacy_tunables
Should also test how this behaves when an insert fails in the context of a trigger, where handling the return code is the desired behavior. See: https://github.com/bloomberg/comdb2/blame/master/docs/pages/programming/triggers.md#L100