[36937] trunk/dports/perl/p5-dbd-sqlite

ricci at macports.org ricci at macports.org
Mon May 19 23:39:33 PDT 2008


Revision: 36937
          http://trac.macosforge.org/projects/macports/changeset/36937
Author:   ricci at macports.org
Date:     2008-05-19 23:39:32 -0700 (Mon, 19 May 2008)

Log Message:
-----------
patch to work with sqlite 3.5.x,
  see 'http://rt.cpan.org/Public/Bug/Display.html?id=30558' and
  comments in code where this patch applies.

Modified Paths:
--------------
    trunk/dports/perl/p5-dbd-sqlite/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-dbd-sqlite/files/
    trunk/dports/perl/p5-dbd-sqlite/files/patch-dbdimp.c.diff

Modified: trunk/dports/perl/p5-dbd-sqlite/Portfile
===================================================================
--- trunk/dports/perl/p5-dbd-sqlite/Portfile	2008-05-20 01:10:42 UTC (rev 36936)
+++ trunk/dports/perl/p5-dbd-sqlite/Portfile	2008-05-20 06:39:32 UTC (rev 36937)
@@ -10,6 +10,8 @@
 
 platforms             darwin
 
+patchfiles            patch-dbdimp.c.diff
+
 checksums             md5 78a89cc8fd46bb2a5d537433dcccc8e6
 
 depends_lib-append    port:p5-dbi

Added: trunk/dports/perl/p5-dbd-sqlite/files/patch-dbdimp.c.diff
===================================================================
--- trunk/dports/perl/p5-dbd-sqlite/files/patch-dbdimp.c.diff	                        (rev 0)
+++ trunk/dports/perl/p5-dbd-sqlite/files/patch-dbdimp.c.diff	2008-05-20 06:39:32 UTC (rev 36937)
@@ -0,0 +1,20 @@
+--- dbdimp.c.orig	2007-08-23 19:51:25.000000000 -0700
++++ dbdimp.c	2008-05-19 19:41:01.000000000 -0700
+@@ -399,7 +399,7 @@
+                 continue;
+             }
+             /* There are bug reports that say this should be sqlite3_reset() */
+-            sqlite3_finalize(imp_sth->stmt);
++            sqlite3_reset(imp_sth->stmt);
+             sqlite_error(sth, (imp_xxh_t*)imp_sth, imp_sth->retval, (char*)sqlite3_errmsg(imp_dbh->db));
+             return -5;
+         }
+@@ -419,7 +419,7 @@
+                           sqlite_trace(5, "exec ok - %d rows, %d cols\n", imp_sth->nrow, DBIc_NUM_FIELDS(imp_sth));
+                           return 0;
+                           /* There are bug reports that say this should be sqlite3_reset() */
+-        default:          sqlite3_finalize(imp_sth->stmt);
++        default:          sqlite3_reset(imp_sth->stmt);
+                           sqlite_error(sth, (imp_xxh_t*)imp_sth, imp_sth->retval, (char*)sqlite3_errmsg(imp_dbh->db));
+                           return -6;
+     }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080519/c51f59b3/attachment-0001.htm 


More information about the macports-changes mailing list