From 4958487d94eeb7c44d6cbb743a83b11af81e2b83 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 6 May 2009 08:08:33 +0000 Subject: [PATCH] DBD-SQLite: renamed misleading dbd_set_sqlite3_busy_timeout to sqlite3_db_busy_timeout (dbd_ prefix should be used for the ones defined in dbd_xsh.h in the DBI package) --- SQLite.xs | 2 +- dbdimp.c | 2 +- dbdimp.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SQLite.xs b/SQLite.xs index 2bcafcb..2766569 100644 --- a/SQLite.xs +++ b/SQLite.xs @@ -90,7 +90,7 @@ busy_timeout(dbh, timeout=0) SV *dbh int timeout CODE: - RETVAL = dbd_set_sqlite3_busy_timeout(aTHX_ dbh, timeout ); + RETVAL = sqlite3_db_busy_timeout(aTHX_ dbh, timeout ); OUTPUT: RETVAL diff --git a/dbdimp.c b/dbdimp.c index 81d5671..e7be5cc 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -129,7 +129,7 @@ sqlite_db_login(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *user, char *pas } int -dbd_set_sqlite3_busy_timeout (pTHX_ SV *dbh, int timeout ) +sqlite3_db_busy_timeout (pTHX_ SV *dbh, int timeout ) { D_imp_dbh(dbh); if (timeout) { diff --git a/dbdimp.h b/dbdimp.h index 311e26e..7fb27b0 100644 --- a/dbdimp.h +++ b/dbdimp.h @@ -78,7 +78,7 @@ 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); 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 dbd_set_sqlite3_busy_timeout (pTHX_ SV *dbh, int timeout ); +int sqlite3_db_busy_timeout (pTHX_ SV *dbh, int timeout ); int sqlite_db_backup_from_file(pTHX_ SV *dbh, char *filename); int sqlite_db_backup_to_file(pTHX_ SV *dbh, char *filename);