diff options
author | dan <Dan Kennedy> | 2022-07-06 15:44:57 +0000 |
---|---|---|
committer | dan <Dan Kennedy> | 2022-07-06 15:44:57 +0000 |
commit | e7ebe0aa81902f9f9e9b8a338b33509289e43c74 (patch) | |
tree | adbe5ab3fa5571a47a473f738dca9c36c4e930f0 /ext/misc/csv.c | |
parent | e36281fc31a171aea4406baa573a4a04cd89ab9d (diff) | |
download | sqlite-e7ebe0aa81902f9f9e9b8a338b33509289e43c74.tar.gz sqlite-e7ebe0aa81902f9f9e9b8a338b33509289e43c74.zip |
Avoid ignoring the last line of a csv file if the final field is empty and
there is no trailing CFLS. Also have the csv extension treat the last line of a
file in the same way as any other line if it is short fields.
FossilOrigin-Name: 587795d47fcaf5142526fabbcc4d5a632f561f258414c2846e8932a49b5b2e6b
Diffstat (limited to 'ext/misc/csv.c')
-rw-r--r-- | ext/misc/csv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/csv.c b/ext/misc/csv.c index 915c1cef8..870a0cf60 100644 --- a/ext/misc/csv.c +++ b/ext/misc/csv.c @@ -751,7 +751,7 @@ static int csvtabNext(sqlite3_vtab_cursor *cur){ i++; } }while( pCur->rdr.cTerm==',' ); - if( z==0 || (pCur->rdr.cTerm==EOF && i<pTab->nCol) ){ + if( z==0 && i==0 ){ pCur->iRowid = -1; }else{ pCur->iRowid++; |