httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r386321 - /httpd/httpd/trunk/modules/database/mod_dbd.c
Date Thu, 16 Mar 2006 12:47:53 GMT
Author: niq
Date: Thu Mar 16 04:47:53 2006
New Revision: 386321

URL: http://svn.apache.org/viewcvs?rev=386321&view=rev
Log:
Log a better error message if initialisation fails on prepared statements.

Modified:
    httpd/httpd/trunk/modules/database/mod_dbd.c

Modified: httpd/httpd/trunk/modules/database/mod_dbd.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/database/mod_dbd.c?rev=386321&r1=386320&r2=386321&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/database/mod_dbd.c (original)
+++ httpd/httpd/trunk/modules/database/mod_dbd.c Thu Mar 16 04:47:53 2006
@@ -294,6 +294,10 @@
     }
     *db = rec;
     rv = dbd_prepared_init(rec->pool, svr, rec);
+    if (rv != APR_SUCCESS) {
+        ap_log_perror(APLOG_MARK, APLOG_CRIT, rv, rec->pool,
+                      "DBD: failed to initialise prepared SQL statements");
+    }
     return rv;
 }
 static apr_status_t dbd_close(void *CONN)



Mime
View raw message