/ Check-in [73fafd21]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make sure the .import command strips newlines off the end of the last field in each line imported. Ticket #1348 (CVS 2578)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 73fafd2148b8cd0f92747fca03e3df5778e1070f
User & Date: drh 2005-08-05 18:50:52
Context
2005-08-11
01:25
Add 2005 open source award badge and news announcement. (CVS 2579) check-in: 8e007f8c user: drh tags: trunk
2005-08-05
18:50
Make sure the .import command strips newlines off the end of the last field in each line imported. Ticket #1348 (CVS 2578) check-in: 73fafd21 user: drh tags: trunk
2005-08-02
21:42
Comment out the use of memory high-water marks when not compiling with SQLITE_MEMDEBUG. (CVS 2577) check-in: fb7a258f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

     8      8   **    May you find forgiveness for yourself and forgive others.
     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code to implement the "sqlite" command line
    13     13   ** utility for accessing SQLite databases.
    14     14   **
    15         -** $Id: shell.c,v 1.122 2005/02/23 12:35:41 drh Exp $
           15  +** $Id: shell.c,v 1.123 2005/08/05 18:50:52 drh Exp $
    16     16   */
    17     17   #include <stdlib.h>
    18     18   #include <string.h>
    19     19   #include <stdio.h>
    20     20   #include <assert.h>
    21     21   #include "sqlite3.h"
    22     22   #include <ctype.h>
................................................................................
  1089   1089             i++;
  1090   1090             if( i<nCol ){
  1091   1091               azCol[i] = &z[nSep];
  1092   1092               z += nSep-1;
  1093   1093             }
  1094   1094           }
  1095   1095         }
         1096  +      *z = 0;
  1096   1097         if( i+1!=nCol ){
  1097   1098           fprintf(stderr,"%s line %d: expected %d columns of data but found %d\n",
  1098   1099              zFile, lineno, nCol, i+1);
  1099   1100           zCommit = "ROLLBACK";
  1100   1101           break;
  1101   1102         }
  1102   1103         for(i=0; i<nCol; i++){