/ Check-in [2a8ac869]
Login

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

Overview
Comment:Add pFetch variable (used by SSE) to sqlite3 structure. (CVS 2475)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2a8ac869671b627d4d01655bbce7a781bc74af44
User & Date: danielk1977 2005-05-23 04:51:02
Context
2005-05-23
13:00
Retain the error string if an error is generated by SSE during a VACUUM. (CVS 2476) check-in: f7b76d02 user: danielk1977 tags: trunk
04:51
Add pFetch variable (used by SSE) to sqlite3 structure. (CVS 2475) check-in: 2a8ac869 user: danielk1977 tags: trunk
2005-05-22
20:30
The cache_size pragma should not reset the synchronous pragma. Ticket #1260. (CVS 2474) check-in: 2db2b32f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

    10     10   **
    11     11   *************************************************************************
    12     12   ** Main file for the SQLite library.  The routines in this file
    13     13   ** implement the programmer interface to the library.  Routines in
    14     14   ** other files are for internal use by SQLite and should not be
    15     15   ** accessed by users of the library.
    16     16   **
    17         -** $Id: main.c,v 1.287 2005/05/06 22:05:57 drh Exp $
           17  +** $Id: main.c,v 1.288 2005/05/23 04:51:02 danielk1977 Exp $
    18     18   */
    19     19   #include "sqliteInt.h"
    20     20   #include "os.h"
    21     21   #include <ctype.h>
    22     22   
    23     23   /*
    24     24   ** The following constant value is used by the SQLITE_BIGENDIAN and
................................................................................
   542    542       }else{
   543    543         assert( pDbList==db );
   544    544         pDbList = db->pNext;
   545    545       }
   546    546       sqlite3OsLeaveMutex();
   547    547     }
   548    548   #endif
          549  +
          550  +#ifdef SQLITE_SSE
          551  +  sqlite3_finalize(db->pFetch);
          552  +#endif 
   549    553   
   550    554     db->magic = SQLITE_MAGIC_ERROR;
   551    555     sqliteFree(db);
   552    556     return SQLITE_OK;
   553    557   }
   554    558   
   555    559   /*

Changes to src/sqliteInt.h.

     7      7   **    May you do good and not evil.
     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   ** Internal interface definitions for SQLite.
    13     13   **
    14         -** @(#) $Id: sqliteInt.h,v 1.380 2005/05/22 20:12:37 drh Exp $
           14  +** @(#) $Id: sqliteInt.h,v 1.381 2005/05/23 04:51:02 danielk1977 Exp $
    15     15   */
    16     16   #ifndef _SQLITEINT_H_
    17     17   #define _SQLITEINT_H_
    18     18   
    19     19   /*
    20     20   ** These #defines should enable >2GB file support on Posix if the
    21     21   ** underlying operating system supports it.  If the OS lacks
................................................................................
   460    460   #ifndef SQLITE_OMIT_GLOBALRECOVER
   461    461     sqlite3 *pNext;               /* Linked list of open db handles. */
   462    462   #endif
   463    463     Hash aFunc;                   /* All functions that can be in SQL exprs */
   464    464     Hash aCollSeq;                /* All collating sequences */
   465    465     BusyHandler busyHandler;      /* Busy callback */
   466    466     Db aDbStatic[2];              /* Static space for the 2 default backends */
          467  +#ifdef SQLITE_SSE
          468  +  sqlite3_stmt *pFetch;         /* Used by SSE to fetch stored statements */
          469  +#endif
   467    470   };
   468    471   
   469    472   /*
   470    473   ** Possible values for the sqlite.flags and or Db.flags fields.
   471    474   **
   472    475   ** On sqlite.flags, the SQLITE_InTrans value means that we have
   473    476   ** executed a BEGIN.  On Db.flags, SQLITE_InTrans means a statement