Voidify PDO's fetch_error handler

This commit is contained in:
George Peter Banyard 2020-12-24 01:45:58 +01:00
parent 60a61afd3c
commit 1a58611ae5
9 changed files with 26 additions and 34 deletions

View file

@ -82,7 +82,7 @@ int _pdo_sqlite_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *file, int li
}
/* }}} */
static int pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info)
static void pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info)
{
pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
pdo_sqlite_error_info *einfo = &H->einfo;
@ -91,8 +91,6 @@ static int pdo_sqlite_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *i
add_next_index_long(info, einfo->errcode);
add_next_index_string(info, einfo->errmsg);
}
return 1;
}
static void pdo_sqlite_cleanup_callbacks(pdo_sqlite_db_handle *H)