[PATCH 1/2] msdasql: Fix logic when dumping diagnostics records.