Sophie

Sophie

distrib > Mandriva > mes5 > x86_64 > by-pkgid > 3a121631a978ef077dd6b3c2dddd59ee > files > 2

perl-DBD-SQLite-1.14-5mdv2009.0.src.rpm

diff -Naur DBD-SQLite-1.14/dbdimp.c DBD-SQLite-1.14-fix-tests/dbdimp.c
--- DBD-SQLite-1.14/dbdimp.c	2007-08-24 04:51:25.000000000 +0200
+++ DBD-SQLite-1.14-fix-tests/dbdimp.c	2008-08-17 20:23:15.000000000 +0200
@@ -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;
     }