File: 10fetchrow.dpatch

package info (click to toggle)
libdbd-sqlite2-perl 2%3A0.33-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,644 kB
  • ctags: 2,310
  • sloc: ansic: 27,879; perl: 1,705; makefile: 47; sh: 14
file content (25 lines) | stat: -rw-r--r-- 918 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10fetchrow.dpatch by Niko Tyni <ntyni@iki.fi>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix segfault when fetchrow() is called again after it has
## DP: returned an empty list once. (#317453)
## DP: If there is a reason upstream has commented out the check
## DP: for an active handle, he's not telling it. (CPAN #16451)

@DPATCH@
diff -urNad trunk~/dbdimp.c trunk/dbdimp.c
--- trunk~/dbdimp.c	2006-01-15 19:49:01.000000000 +0200
+++ trunk/dbdimp.c	2006-01-15 19:55:57.964993110 +0200
@@ -473,11 +473,9 @@
     /* warn("current_entry == %d\nnumFields == %d\nnrow == %d",
         current_entry, numFields, imp_sth->nrow); */
 
-    /*
     if (!DBIc_ACTIVE(imp_sth)) {
         return Nullav;
     }
-    */
     
     if ((imp_sth->retval == SQLITE_DONE) || (imp_sth->retval == SQLITE_ERROR)) {
         sqlite2_st_finish(sth, imp_sth);