]> granicus.if.org Git - apache/commitdiff
apr_dbd_check_conn() just returns APR_SUCCESS or APR_EGENERAL, so we
authorChris Darroch <chrisd@apache.org>
Sat, 19 May 2007 05:01:44 +0000 (05:01 +0000)
committerChris Darroch <chrisd@apache.org>
Sat, 19 May 2007 05:01:44 +0000 (05:01 +0000)
don't actually have a driver-specific value to pass to apr_dbd_error(),
but that's OK because most/all drivers just ignore this value anyway

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@539687 13f79535-47bb-0310-9956-ffa450edef68

modules/database/mod_dbd.c

index 9914875caf14be914a725b697011fdaebc7af9a9..5679b6e003d9bc22b109c50dd64103c973fc34c9 100644 (file)
@@ -706,7 +706,10 @@ static apr_status_t dbd_check(apr_pool_t *pool, server_rec *s, ap_dbd_t *rec)
         return APR_SUCCESS;
     }
 
-    errmsg = apr_dbd_error(rec->driver, rec->handle, rv);
+    /* we don't have a driver-specific error code, so we'll just pass
+     * a "success" value and rely on the driver to ignore it
+     */
+    errmsg = apr_dbd_error(rec->driver, rec->handle, 0);
     if (!errmsg) {
         errmsg = "(unknown)";
     }