1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 22:28:47 -04:00

DBD::SQLite: (hopefully) silenced warnings

This commit is contained in:
Kenichi Ishigaki 2010-03-29 23:46:25 +00:00
parent e6fd6335cd
commit ce4a01170f

View file

@ -512,7 +512,7 @@ sqlite_st_execute(SV *sth, imp_sth_t *imp_sth)
SV *sql_type_sv = av_shift(imp_sth->params); SV *sql_type_sv = av_shift(imp_sth->params);
int sql_type = SvIV(sql_type_sv); int sql_type = SvIV(sql_type_sv);
sqlite_trace(sth, imp_sth, 4, form("params left in 0x%p: %d", imp_sth->params, 1+av_len(imp_sth->params))); sqlite_trace(sth, imp_sth, 4, form("params left in 0x%p: %ld", imp_sth->params, 1+av_len(imp_sth->params)));
sqlite_trace(sth, imp_sth, 4, form("bind %d type %d as %s", i, sql_type, SvPV_nolen_undef_ok(value))); sqlite_trace(sth, imp_sth, 4, form("bind %d type %d as %s", i, sql_type, SvPV_nolen_undef_ok(value)));
if (!SvOK(value)) { if (!SvOK(value)) {
@ -1492,7 +1492,7 @@ sqlite_db_collation_needed(pTHX_ SV *dbh, SV *callback)
/* Register the func within sqlite3 */ /* Register the func within sqlite3 */
(void) sqlite3_collation_needed( imp_dbh->db, (void) sqlite3_collation_needed( imp_dbh->db,
(void*) SvOK(callback) ? dbh : NULL, (void*) (SvOK(callback) ? dbh : NULL),
sqlite_db_collation_needed_dispatcher ); sqlite_db_collation_needed_dispatcher );
} }