Report a unique constraint violation via TRI_set_errno.