/ Check-in [3e558acd]
Login

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

Overview
Comment:Fix a comment in alter.c. No changes to code. (CVS 5347)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 3e558acd5eb8aa5ef4681e62284af5c017a24a65
User & Date: drh 2008-07-07 12:44:58
Context
2008-07-07
13:31
Add the vfs_unregister_all and vfs_reregister_all test commands. Use them to test the sqlite3_sleep() interface when no VFSes are registered. (CVS 5348) check-in: 024d4392 user: drh tags: trunk
12:44
Fix a comment in alter.c. No changes to code. (CVS 5347) check-in: 3e558acd user: drh tags: trunk
11:18
Make the Pager.pAll linked-list doubly linked when ENABLE_MEMORY_MANAGEMENT is defined. This is used to speed up sqlite3_release_memory(). (CVS 5346) check-in: 71d699de user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/alter.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 C code routines that used to generate VDBE code
    13     13   ** that implements the ALTER TABLE command.
    14     14   **
    15         -** $Id: alter.c,v 1.44 2008/05/09 14:17:52 drh Exp $
           15  +** $Id: alter.c,v 1.45 2008/07/07 12:44:58 drh Exp $
    16     16   */
    17     17   #include "sqliteInt.h"
    18     18   #include <ctype.h>
    19     19   
    20     20   /*
    21     21   ** The code in this file only exists if we are not omitting the
    22     22   ** ALTER TABLE logic from the build.
................................................................................
    51     51     int len = 0;
    52     52     char *zRet;
    53     53   
    54     54     sqlite3 *db = sqlite3_context_db_handle(context);
    55     55   
    56     56     /* The principle used to locate the table name in the CREATE TABLE 
    57     57     ** statement is that the table name is the first non-space token that
    58         -  ** is immediately followed by a left parenthesis - TK_LP - or "USING" TK_USING.
           58  +  ** is immediately followed by a TK_LP or TK_USING token.
    59     59     */
    60     60     if( zSql ){
    61     61       do {
    62     62         if( !*zCsr ){
    63     63           /* Ran out of input before finding an opening bracket. Return NULL. */
    64     64           return;
    65     65         }