/ Check-in [8bff1bee]
Login

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

Overview
Comment::-) (CVS 67)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8bff1bee63b77353b4cfe5aa0c662187a7bf93da
User & Date: drh 2000-06-07 01:33:42
Context
2000-06-07
02:04
:-) (CVS 68) check-in: fc8d25ea user: drh tags: trunk
01:33
:-) (CVS 67) check-in: 8bff1bee user: drh tags: trunk
01:27
:-) (CVS 66) check-in: 5d2e72e4 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

    20     20   **   drh@hwaci.com
    21     21   **   http://www.hwaci.com/drh/
    22     22   **
    23     23   *************************************************************************
    24     24   ** This file contains code to implement the "sqlite" command line
    25     25   ** utility for accessing SQLite databases.
    26     26   **
    27         -** $Id: shell.c,v 1.10 2000/06/07 01:27:48 drh Exp $
           27  +** $Id: shell.c,v 1.11 2000/06/07 01:33:42 drh Exp $
    28     28   */
    29     29   #include <stdlib.h>
    30     30   #include <string.h>
    31     31   #include <stdio.h>
    32     32   #include "sqlite.h"
    33     33   #include <unistd.h>
    34     34   #include <ctype.h>
................................................................................
   210    210             if( j>0 ){
   211    211               fprintf(p->out, "%.*s", j, z);
   212    212             }
   213    213             if( z[j] ){
   214    214               fprintf(p->out, "\\%c", z[j]);
   215    215               z = &z[j+1];
   216    216             }
          217  +          z += j;
   217    218           }
   218    219           fprintf(p->out, "%s", i==nArg-1 ? "\n" : p->separator);
   219    220         }
   220    221         break;
   221    222       }
   222    223       case MODE_Html: {
   223    224         if( p->cnt++==0 && p->showHeader ){
................................................................................
   257    258       d2.mode = MODE_List;
   258    259       strcpy(d2.separator,"\t");
   259    260       fprintf(pData->out, "COPY '%s' FROM STDIN;\n", azArg[0]);
   260    261       sprintf(zSql, "SELECT * FROM '%s'", azArg[0]);
   261    262       sqlite_exec(pData->db, zSql, callback, &d2, 0);
   262    263       fprintf(pData->out, "\\.\n");
   263    264     }
   264         -  fprintf(pData->out, "VACUUM '%s';\n", azArg[2]);
          265  +  fprintf(pData->out, "VACUUM '%s';\n", azArg[0]);
   265    266     return 0;
   266    267   }
   267    268   
   268    269   /*
   269    270   ** Text of a help message
   270    271   */
   271    272   static char zHelp[] =