/ Check-in [113aab2c]
Login

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

Overview
Comment:The SQLITE_ENABLE_LOAD_EXTENSION macro enables the load_extension() SQL function by default without having to invoke sqlite3_enable_load_extension() first. (CVS 3732)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:113aab2cdf4480683cd5e844b5a48dcc093792ff
User & Date: drh 2007-03-27 22:24:11
Context
2007-03-28
01:59
Fix an memory allocation error revealed by malloc3.test. (CVS 3733) check-in: 0f7fdb02 user: drh tags: trunk
2007-03-27
22:24
The SQLITE_ENABLE_LOAD_EXTENSION macro enables the load_extension() SQL function by default without having to invoke sqlite3_enable_load_extension() first. (CVS 3732) check-in: 113aab2c user: drh tags: trunk
21:47
Fix the prototype of the CodecAttach function in attach.c. (CVS 3731) check-in: 902413e8 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.361 2007/02/28 04:47:27 drh Exp $
           17  +** $Id: main.c,v 1.362 2007/03/27 22:24:11 drh 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
................................................................................
   881    881     db->nDb = 2;
   882    882     db->aDb = db->aDbStatic;
   883    883     db->autoCommit = 1;
   884    884     db->flags |= SQLITE_ShortColNames
   885    885   #if SQLITE_DEFAULT_FILE_FORMAT<4
   886    886                    | SQLITE_LegacyFileFmt
   887    887   #endif
          888  +#ifdef SQLITE_ENABLE_LOAD_EXTENSION
          889  +                 | SQLITE_LoadExtension
          890  +#endif
   888    891         ;
   889    892     sqlite3HashInit(&db->aFunc, SQLITE_HASH_STRING, 0);
   890    893     sqlite3HashInit(&db->aCollSeq, SQLITE_HASH_STRING, 0);
   891    894   #ifndef SQLITE_OMIT_VIRTUALTABLE
   892    895     sqlite3HashInit(&db->aModule, SQLITE_HASH_STRING, 0);
   893    896   #endif
   894    897