fix build with old system libsqlite (sqlite3_close_v2 may be missing)

This commit is contained in:
Remi Collet 2017-08-02 16:09:36 +02:00
parent 5e5895a464
commit afdf7519d1
2 changed files with 8 additions and 0 deletions

View file

@ -161,7 +161,11 @@ static int sqlite_handle_closer(pdo_dbh_t *dbh) /* {{{ */
pdo_sqlite_cleanup_callbacks(H);
if (H->db) {
#ifdef HAVE_SQLITE3_CLOSE_V2
sqlite3_close_v2(H->db);
#else
sqlite3_close(H->db);
#endif
H->db = NULL;
}
if (einfo->errmsg) {