1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

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)

FossilOrigin-Name: 113aab2cdf4480683cd5e844b5a48dcc093792ff
This commit is contained in:
drh
2007-03-27 22:24:11 +00:00
parent 3262cb24ff
commit 56424db419
3 changed files with 11 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.361 2007/02/28 04:47:27 drh Exp $
** $Id: main.c,v 1.362 2007/03/27 22:24:11 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -884,6 +884,9 @@ static int openDatabase(
db->flags |= SQLITE_ShortColNames
#if SQLITE_DEFAULT_FILE_FORMAT<4
| SQLITE_LegacyFileFmt
#endif
#ifdef SQLITE_ENABLE_LOAD_EXTENSION
| SQLITE_LoadExtension
#endif
;
sqlite3HashInit(&db->aFunc, SQLITE_HASH_STRING, 0);