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

@ -1,5 +1,5 @@
C Fix\sthe\sprototype\sof\sthe\sCodecAttach\sfunction\sin\sattach.c.\s(CVS\s3731)
D 2007-03-27T21:47:07
C The\sSQLITE_ENABLE_LOAD_EXTENSION\smacro\senables\sthe\sload_extension()\sSQL\nfunction\sby\sdefault\swithout\shaving\sto\sinvoke\ssqlite3_enable_load_extension()\nfirst.\s(CVS\s3732)
D 2007-03-27T22:24:11
F Makefile.in 1fe3d0b46e40fd684e1e61f8e8056cefed16de9f
F Makefile.linux-gcc 2d8574d1ba75f129aba2019f0b959db380a90935
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@ -73,7 +73,7 @@ F src/hash.h 1b3f7e2609141fd571f62199fc38687d262e9564
F src/insert.c 9dbb62ba053769de20cf6b4ac73ceeb81ffc24f3
F src/legacy.c 2631df6a861f830d6b1c0fe92b9fdd745b2c0cd6
F src/loadext.c c186ad5c9e8a0aaa73d0caf5f604d112e45e8b89
F src/main.c af8922e0205cf618392de2836c9efad71786d0d6
F src/main.c ed005bbc1d94670c8d9e2b93d446bd493119c44c
F src/md5.c c5fdfa5c2593eaee2e32a5ce6c6927c986eaf217
F src/os.c 6df3e9c23eaa982d3e66ef770ad2519de5dd4d97
F src/os.h ec780b3561d0bb887d13f193a1a889872c44a236
@ -442,7 +442,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513
P e4452e8aede9282feaeeac19d0cdf82b01c3cc19
R e81caee930d4fa63d67e784778509967
P 902413e81b1ae8bee09987c798622a55ab2a1504
R a3c3f96a41087c6c52e773240baf1bb3
U drh
Z 92c8d3d934954906a95fdeb376851102
Z 265dc8f132e764318a2027b91d30531a

View File

@ -1 +1 @@
902413e81b1ae8bee09987c798622a55ab2a1504
113aab2cdf4480683cd5e844b5a48dcc093792ff

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);