/ Check-in [0ab0b030]
Login

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

Overview
Comment:Added reminder message to terminate SQL statements with a semicolon on shell startup. This closes #3099. (CVS 5325)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 0ab0b030dea03ec6693358b733329328828cf802
User & Date: mihailim 2008-06-28 11:29:23
Context
2008-06-28
15:33
Remove an assert() that was failing if there were any open incremental blob handles when a statement transaction was rolled back. (CVS 5326) check-in: f66491ab user: danielk1977 tags: trunk
11:29
Added reminder message to terminate SQL statements with a semicolon on shell startup. This closes #3099. (CVS 5325) check-in: 0ab0b030 user: mihailim tags: trunk
11:23
Rearrange some ENABLE_LOCKING_STYLE related code in os_unix.c. (CVS 5324) check-in: f70d552b user: danielk1977 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.182 2008/06/26 10:41:19 danielk1977 Exp $
           15  +** $Id: shell.c,v 1.183 2008/06/28 11:29:23 mihailim 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>
................................................................................
  2058   2058       */
  2059   2059       if( stdin_is_interactive ){
  2060   2060         char *zHome;
  2061   2061         char *zHistory = 0;
  2062   2062         int nHistory;
  2063   2063         printf(
  2064   2064           "SQLite version %s\n"
  2065         -        "Enter \".help\" for instructions\n",
         2065  +        "Enter \".help\" for instructions\n"
         2066  +        "Enter SQL statements terminated with a \";\"\n",
  2066   2067           sqlite3_libversion()
  2067   2068         );
  2068   2069         zHome = find_home_dir();
  2069   2070         if( zHome && (zHistory = malloc(nHistory = strlen(zHome)+20))!=0 ){
  2070   2071           sqlite3_snprintf(nHistory, zHistory,"%s/.sqlite_history", zHome);
  2071   2072         }
  2072   2073   #if defined(HAVE_READLINE) && HAVE_READLINE==1