mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
better support for SQLITE_OMIT_LOAD_EXTENSION
This commit is contained in:
parent
7e674159f9
commit
e40b755564
3 changed files with 12 additions and 0 deletions
|
@ -40,6 +40,8 @@ create_function(dbh, name, argc, func)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
#ifndef SQLITE_OMIT_LOAD_EXTENSION
|
||||
|
||||
static int
|
||||
enable_load_extension(dbh, onoff)
|
||||
SV *dbh
|
||||
|
@ -53,6 +55,8 @@ enable_load_extension(dbh, onoff)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
#endif
|
||||
|
||||
static int
|
||||
create_aggregate(dbh, name, argc, aggr)
|
||||
SV *dbh
|
||||
|
|
4
dbdimp.c
4
dbdimp.c
|
@ -1304,6 +1304,8 @@ sqlite_db_create_function(pTHX_ SV *dbh, const char *name, int argc, SV *func)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#ifndef SQLITE_OMIT_LOAD_EXTENSION
|
||||
|
||||
int
|
||||
sqlite_db_enable_load_extension(pTHX_ SV *dbh, int onoff)
|
||||
{
|
||||
|
@ -1326,6 +1328,8 @@ sqlite_db_enable_load_extension(pTHX_ SV *dbh, int onoff)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static void
|
||||
sqlite_db_aggr_new_dispatcher(pTHX_ sqlite3_context *context, aggrInfo *aggr_info)
|
||||
{
|
||||
|
|
4
dbdimp.h
4
dbdimp.h
|
@ -86,7 +86,11 @@ struct aggrInfo {
|
|||
|
||||
|
||||
int sqlite_db_create_function(pTHX_ SV *dbh, const char *name, int argc, SV *func);
|
||||
|
||||
#ifndef SQLITE_OMIT_LOAD_EXTENSION
|
||||
int sqlite_db_enable_load_extension(pTHX_ SV *dbh, int onoff);
|
||||
#endif
|
||||
|
||||
int sqlite_db_create_aggregate(pTHX_ SV *dbh, const char *name, int argc, SV *aggr );
|
||||
int sqlite_db_create_collation(pTHX_ SV *dbh, const char *name, SV *func);
|
||||
int sqlite_db_progress_handler(pTHX_ SV *dbh, int n_opcodes, SV *handler);
|
||||
|
|
Loading…
Add table
Reference in a new issue