extended constraint error codes in alphabetical order. Add many test cases
for the extended constraint error codes.
FossilOrigin-Name: 3f67437536591a1b0742a25b983707933aaa16d5
of a larger transation, make sure that the statement fully ends so that
subsequent invocations of the same statement will not pass the constraint
because they think the transaction is not closed. This is a merge of
the deferred-fk-quirk branch together with a test case.
FossilOrigin-Name: 2f94d4623f9aae1b5bc7041bd85f4e3a7462c60e