/ Check-in [6f8a5623]
Login

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

Overview
Comment:Fix a typo in shell.c. Ticket #2111. (CVS 3533)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6f8a56231c4d0d990c54365f0ff0544bd8b3caf8
User & Date: drh 2006-12-19 18:47:41
Context
2006-12-19
18:57
Build without warnings and pass all tests with SQLITE_OMIT_LOAD_EXTENSION. Ticket #2113. (CVS 3534) check-in: c3d118b4 user: drh tags: trunk
18:47
Fix a typo in shell.c. Ticket #2111. (CVS 3533) check-in: 6f8a5623 user: drh tags: trunk
18:46
Use sqlite3_mprintf() instead of strdup() to reduce libc dependencies. Ticket #2114. (CVS 3532) check-in: bf4a78cb 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.156 2006/11/20 16:21:10 drh Exp $
           15  +** $Id: shell.c,v 1.157 2006/12/19 18:47:41 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>
................................................................................
  1261   1261         p->mode = MODE_Insert;
  1262   1262         if( nArg>=3 ){
  1263   1263           set_table_name(p, azArg[2]);
  1264   1264         }else{
  1265   1265           set_table_name(p, "table");
  1266   1266         }
  1267   1267       }else {
  1268         -      fprintf(stderr,"mode should be on of: "
         1268  +      fprintf(stderr,"mode should be one of: "
  1269   1269            "column csv html insert line list tabs tcl\n");
  1270   1270       }
  1271   1271     }else
  1272   1272   
  1273   1273     if( c=='n' && strncmp(azArg[0], "nullvalue", n)==0 && nArg==2 ) {
  1274   1274       sprintf(p->nullvalue, "%.*s", (int)ArraySize(p->nullvalue)-1, azArg[1]);
  1275   1275     }else