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:
		@@ -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++;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user