And the same thing for sqlite3.

--
Bojan
diff -rauN apr-util-vanilla/dbd/apr_dbd_sqlite3.c apr-util/dbd/apr_dbd_sqlite3.c
--- apr-util-vanilla/dbd/apr_dbd_sqlite3.c	2006-01-27 16:15:48.000000000 +1100
+++ apr-util/dbd/apr_dbd_sqlite3.c	2006-02-14 16:30:14.000000000 +1100
@@ -177,6 +177,15 @@
     return ret;
 }
 
+static const char *dbd_sqlite3_get_name(const apr_dbd_results_t *res, int n)
+{
+    if ((n < 0) || (n >= res->sz)) {
+        return NULL;
+    }
+
+    return res->next_row->columns[n]->name;
+}
+
 static int dbd_sqlite3_get_row(apr_pool_t *pool, apr_dbd_results_t *res,
                                apr_dbd_row_t **rowp, int rownum)
 {
@@ -415,5 +424,6 @@
     dbd_sqlite3_pvselect,
     dbd_sqlite3_pquery,
     dbd_sqlite3_pselect,
+    dbd_sqlite3_get_name
 };
 #endif

Reply via email to