/ Check-in [9c9f4a86]
Login

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

Overview
Comment:Fix the return type of sqliteRunVacuum. Ticket #627. (CVS 1271)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:9c9f4a867a4ea708847cbb0839b7279eb33ecd7c
User & Date: drh 2004-02-25 02:33:35
Context
2004-02-25
13:47
Min() and max() functions honor the distinction between TEXT and NUMERIC data. Ticket #623. typeof() is now a user function. Some tests are now failing due to ticket #521. (CVS 1272) check-in: adbe31ad user: drh tags: trunk
02:33
Fix the return type of sqliteRunVacuum. Ticket #627. (CVS 1271) check-in: 9c9f4a86 user: drh tags: trunk
02:25
Shell program saves command-line history on a ".quit". Ticket #614. (CVS 1270) check-in: 114b72f8 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vacuum.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the VACUUM command.
    13     13   **
    14     14   ** Most of the code in this file may be omitted by defining the
    15     15   ** SQLITE_OMIT_VACUUM macro.
    16     16   **
    17         -** $Id: vacuum.c,v 1.11 2004/02/12 13:02:56 drh Exp $
           17  +** $Id: vacuum.c,v 1.12 2004/02/25 02:33:35 drh Exp $
    18     18   */
    19     19   #include "sqliteInt.h"
    20     20   #include "os.h"
    21     21   
    22     22   /*
    23     23   ** A structure for holding a dynamic string - a string that can grow
    24     24   ** without bound. 
................................................................................
   310    310     sqlite_exec(db, "ROLLBACK", 0, 0, 0);
   311    311     if( dbNew ) sqlite_close(dbNew);
   312    312     sqliteOsDelete(zTemp);
   313    313     sqliteFree(zTemp);
   314    314     sqliteFree(sVac.s1.z);
   315    315     sqliteFree(sVac.s2.z);
   316    316     if( zErrMsg ) sqlite_freemem(zErrMsg);
   317         -  if( rc==SQLITE_ABORT ) rc = SQLITE_ERROR;
   318         -  if( sVac.rc!=SQLITE_OK ) rc = sVac.rc;
          317  +  if( rc==SQLITE_ABORT ) sVac.rc = SQLITE_ERROR;
   319    318     return sVac.rc;
   320    319   #endif
   321    320   }