Check error code in nuodb_handler_doer
test case for DB-4710