summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-SQLite/files/patch-dbdimp.c
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2006-03-22 14:54:15 +0000
committerAnton Berezin <tobez@FreeBSD.org>2006-03-22 14:54:15 +0000
commit1c6c0f63e2135ff5b0d4cff5a2573faeb3bf0f87 (patch)
treeb73fb48a5359cc827f74fab900cf19f879f16a5a /databases/p5-DBD-SQLite/files/patch-dbdimp.c
parent- Fix build on 4.x (diff)
Switch to always using sqlite library from databases/sqlite3 port as
opposed to using the version of the library bundled with this port. Rationale: the recent versions of databases/sqlite3 introduced incompatible changes to the DB file format, and we'd like to keep interoperability between this port and databases/sqlite3. Reported by: edwin PR: 94668
Notes
Notes: svn path=/head/; revision=157965
Diffstat (limited to '')
-rw-r--r--databases/p5-DBD-SQLite/files/patch-dbdimp.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/p5-DBD-SQLite/files/patch-dbdimp.c b/databases/p5-DBD-SQLite/files/patch-dbdimp.c
new file mode 100644
index 000000000000..c9b329bdb988
--- /dev/null
+++ b/databases/p5-DBD-SQLite/files/patch-dbdimp.c
@@ -0,0 +1,22 @@
+$FreeBSD$
+
+--- dbdimp.c.orig Wed Mar 22 15:21:16 2006
++++ dbdimp.c Wed Mar 22 15:21:38 2006
+@@ -260,7 +260,7 @@ sqlite_st_prepare (SV *sth, imp_sth_t *i
+ imp_sth->retval = SQLITE_OK;
+ imp_sth->params = newAV();
+
+- if ((retval = sqlite3_prepare(imp_dbh->db, statement, 0, &(imp_sth->stmt), &extra))
++ if ((retval = sqlite3_prepare(imp_dbh->db, statement, -1, &(imp_sth->stmt), &extra))
+ != SQLITE_OK)
+ {
+ if (imp_sth->stmt) {
+@@ -320,7 +320,7 @@ sqlite_st_execute (SV *sth, imp_sth_t *i
+ psv = hv_fetch((HV*)SvRV(sth), "Statement", 9, 0);
+ statement = (psv && SvOK(*psv)) ? SvPV_nolen(*psv) : "";
+ sqlite_trace(3, "re-prepare statement %s", statement);
+- if ((retval = sqlite3_prepare(imp_dbh->db, statement, 0, &(imp_sth->stmt), &extra))
++ if ((retval = sqlite3_prepare(imp_dbh->db, statement, -1, &(imp_sth->stmt), &extra))
+ != SQLITE_OK)
+ {
+ if (imp_sth->stmt) {