mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
try not to reuse hv
This commit is contained in:
parent
13da736ed6
commit
ce5b33b381
1 changed files with 2 additions and 1 deletions
3
dbdimp.c
3
dbdimp.c
|
@ -459,7 +459,8 @@ sqlite_db_login6(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *user, char *pa
|
|||
|
||||
sqlite3_busy_timeout(imp_dbh->db, SQL_TIMEOUT);
|
||||
|
||||
if (SvROK(attr) && hv) {
|
||||
if (SvROK(attr)) {
|
||||
hv = (HV*)SvRV(attr);
|
||||
if (hv_exists(hv, "sqlite_defensive", 16)) {
|
||||
val = hv_fetch(hv, "sqlite_defensive", 16, 0);
|
||||
if (val && SvIOK(*val)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue