apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keisuke Nishida" <keisuke.nish...@gmail.com>
Subject [PATCH] a bug in dbd_sqlite3_get_name
Date Wed, 19 Jul 2006 06:13:07 GMT
Hi,

apr_dbd_sqlite3.c:dbd_sqlite3_get_name() in the trunk crashes when
res->next_row is NULL.  The patch below fixes the problem.

Keisuke

--- apr_dbd_sqlite3.c	(revision 423374)
+++ apr_dbd_sqlite3.c	(working copy)
@@ -191,7 +191,7 @@
         return NULL;
     }

-    return res->next_row->columns[n]->name;
+    return res->col_names[n];
 }

 static int dbd_sqlite3_get_row(apr_pool_t *pool, apr_dbd_results_t *res,

Mime
View raw message