Commit c75b278
committed
Improve EndOfStream detection in CsvDataReader
Replaces the EndOfStream property logic to rely on a new _readReturnedFalse flag, which is set when Read() returns false, ensuring more accurate end-of-stream detection. Also simplifies header name generation by using string.IsNullOrWhiteSpace.1 parent 15fe548 commit c75b278
File tree
2 files changed
+10
-5
lines changed- project
- dbatools.Tests/Csv
- dbatools/Csv/Reader
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1123 | 1123 | | |
1124 | 1124 | | |
1125 | 1125 | | |
1126 | | - | |
1127 | 1126 | | |
1128 | 1127 | | |
1129 | | - | |
1130 | | - | |
| 1128 | + | |
| 1129 | + | |
1131 | 1130 | | |
1132 | 1131 | | |
1133 | 1132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
671 | 672 | | |
672 | 673 | | |
673 | 674 | | |
674 | | - | |
| 675 | + | |
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| |||
1498 | 1499 | | |
1499 | 1500 | | |
1500 | 1501 | | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
1501 | 1507 | | |
1502 | 1508 | | |
1503 | 1509 | | |
| |||
3821 | 3827 | | |
3822 | 3828 | | |
3823 | 3829 | | |
3824 | | - | |
| 3830 | + | |
3825 | 3831 | | |
3826 | 3832 | | |
3827 | 3833 | | |
| |||
0 commit comments