Foreign key constraint error
Tests for foreign key constraint violation
Add support for 2233 for pg and sqlite
Add support for calling promise.done with no arguments. Closes #2161
Merge remote-tracking branch 'upstream/master'