mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
applied a patch to fix segmentation fault on 32-bit big-endian platforms by Niko Tyni (#45)
https://salsa.debian.org/perl-team/modules/packages/libdbd-sqlite3-perl/blob/master/debian/patches/0001-Fix-SQLITE_DBCONFIG_DEFENSIVE-parameter-types.patch
This commit is contained in:
parent
6e89c499b4
commit
8b758bfbbf
1 changed files with 1 additions and 1 deletions
2
dbdimp.c
2
dbdimp.c
|
@ -464,7 +464,7 @@ sqlite_db_login6(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *user, char *pa
|
||||||
if (hv_exists(hv, "sqlite_defensive", 16)) {
|
if (hv_exists(hv, "sqlite_defensive", 16)) {
|
||||||
val = hv_fetch(hv, "sqlite_defensive", 16, 0);
|
val = hv_fetch(hv, "sqlite_defensive", 16, 0);
|
||||||
if (val && SvIOK(*val)) {
|
if (val && SvIOK(*val)) {
|
||||||
sqlite3_db_config(imp_dbh->db, SQLITE_DBCONFIG_DEFENSIVE, SvIV(*val), 0);
|
sqlite3_db_config(imp_dbh->db, SQLITE_DBCONFIG_DEFENSIVE, (int)SvIV(*val), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue