1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-03 16:53:36 +03:00

Fix an issue in the command-line shell with CSV import of rows with

empty columns.

FossilOrigin-Name: 60b65e5ee3828c2a814bf035b57b3e8681af9397
This commit is contained in:
drh
2013-06-30 20:24:26 +00:00
parent 12cd6cfd6e
commit d0a64dc75a
3 changed files with 10 additions and 10 deletions

View File

@@ -1738,11 +1738,11 @@ static char *csv_read_one_field(CSVReader *p){
}
csv_append_char(p, c);
pc = c;
}
}
}else{
csv_append_char(p, c);
while( (c = fgetc(p->in))!=EOF && c!=cSep && c!='\n' ){
while( c!=EOF && c!=cSep && c!='\n' ){
csv_append_char(p, c);
c = fgetc(p->in);
}
if( c=='\n' ){
p->nLine++;