From 7c46b33c6b580876f9c82942dc65abe698489488 Mon Sep 17 00:00:00 2001 From: MarkPflug Date: Tue, 14 Nov 2023 11:18:05 -0800 Subject: [PATCH] Fix xlsb column filter off-by-one. --- source/Sylvan.Data.Excel/Xlsb/XlsbDataWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Sylvan.Data.Excel/Xlsb/XlsbDataWriter.cs b/source/Sylvan.Data.Excel/Xlsb/XlsbDataWriter.cs index 218f2f0..f89b8b9 100644 --- a/source/Sylvan.Data.Excel/Xlsb/XlsbDataWriter.cs +++ b/source/Sylvan.Data.Excel/Xlsb/XlsbDataWriter.cs @@ -544,7 +544,7 @@ async Task WriteInternal(DbDataReader data, string? worksheetName, bw.Write(0); bw.Write(0); bw.Write(0); - bw.Write(fieldCount); + bw.Write(fieldCount - 1); bw.WriteMarker(RecordType.FilterEnd);