mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
DBD-SQLite: fixed return value of progress_handler
This commit is contained in:
parent
edfec1a6db
commit
a8346d9b42
3 changed files with 7 additions and 4 deletions
|
@ -83,7 +83,7 @@ create_collation(dbh, name, func)
|
||||||
sqlite3_db_create_collation(aTHX_ dbh, name, func );
|
sqlite3_db_create_collation(aTHX_ dbh, name, func );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static int
|
||||||
progress_handler(dbh, n_opcodes, handler)
|
progress_handler(dbh, n_opcodes, handler)
|
||||||
SV *dbh
|
SV *dbh
|
||||||
int n_opcodes
|
int n_opcodes
|
||||||
|
@ -92,8 +92,10 @@ progress_handler(dbh, n_opcodes, handler)
|
||||||
DBD::SQLite::db::sqlite_progress_handler = 1
|
DBD::SQLite::db::sqlite_progress_handler = 1
|
||||||
CODE:
|
CODE:
|
||||||
{
|
{
|
||||||
sqlite3_db_progress_handler(aTHX_ dbh, n_opcodes, handler );
|
RETVAL = sqlite3_db_progress_handler(aTHX_ dbh, n_opcodes, handler );
|
||||||
}
|
}
|
||||||
|
OUTPUT:
|
||||||
|
RETVAL
|
||||||
|
|
||||||
int
|
int
|
||||||
busy_timeout(dbh, timeout=0)
|
busy_timeout(dbh, timeout=0)
|
||||||
|
|
3
dbdimp.c
3
dbdimp.c
|
@ -1309,7 +1309,7 @@ sqlite_db_progress_handler_dispatcher( void *handler )
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
int
|
||||||
sqlite3_db_progress_handler(pTHX_ SV *dbh, int n_opcodes, SV *handler )
|
sqlite3_db_progress_handler(pTHX_ SV *dbh, int n_opcodes, SV *handler )
|
||||||
{
|
{
|
||||||
D_imp_dbh(dbh);
|
D_imp_dbh(dbh);
|
||||||
|
@ -1329,6 +1329,7 @@ sqlite3_db_progress_handler(pTHX_ SV *dbh, int n_opcodes, SV *handler )
|
||||||
sqlite_db_progress_handler_dispatcher,
|
sqlite_db_progress_handler_dispatcher,
|
||||||
handler_sv );
|
handler_sv );
|
||||||
}
|
}
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Accesses the SQLite Online Backup API, and fills the currently loaded
|
/* Accesses the SQLite Online Backup API, and fills the currently loaded
|
||||||
|
|
2
dbdimp.h
2
dbdimp.h
|
@ -82,7 +82,7 @@ void sqlite3_db_create_function(pTHX_ SV *dbh, const char *name, int argc, SV *f
|
||||||
void sqlite3_db_enable_load_extension(pTHX_ SV *dbh, int onoff);
|
void sqlite3_db_enable_load_extension(pTHX_ SV *dbh, int onoff);
|
||||||
void sqlite3_db_create_aggregate(pTHX_ SV *dbh, const char *name, int argc, SV *aggr );
|
void sqlite3_db_create_aggregate(pTHX_ SV *dbh, const char *name, int argc, SV *aggr );
|
||||||
void sqlite3_db_create_collation(pTHX_ SV *dbh, const char *name, SV *func);
|
void sqlite3_db_create_collation(pTHX_ SV *dbh, const char *name, SV *func);
|
||||||
void sqlite3_db_progress_handler(pTHX_ SV *dbh, int n_opcodes, SV *handler);
|
int sqlite3_db_progress_handler(pTHX_ SV *dbh, int n_opcodes, SV *handler);
|
||||||
void sqlite_st_reset(pTHX_ SV *sth );
|
void sqlite_st_reset(pTHX_ SV *sth );
|
||||||
int sqlite_bind_col( SV *sth, imp_sth_t *imp_sth, SV *col, SV *ref, IV sql_type, SV *attribs );
|
int sqlite_bind_col( SV *sth, imp_sth_t *imp_sth, SV *col, SV *ref, IV sql_type, SV *attribs );
|
||||||
int sqlite3_db_busy_timeout (pTHX_ SV *dbh, int timeout );
|
int sqlite3_db_busy_timeout (pTHX_ SV *dbh, int timeout );
|
||||||
|
|
Loading…
Add table
Reference in a new issue