httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r432562 - /httpd/httpd/trunk/modules/database/mod_dbd.c
Date Fri, 18 Aug 2006 12:38:28 GMT
Author: niq
Date: Fri Aug 18 05:38:28 2006
New Revision: 432562

URL: http://svn.apache.org/viewvc?rev=432562&view=rev
Log:
Log a message if we try to prepare a statement not attached to a hostname.
This fix supplements r432560 (don't crash).

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

Modified: httpd/httpd/trunk/modules/database/mod_dbd.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/database/mod_dbd.c?rev=432562&r1=432561&r2=432562&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/database/mod_dbd.c (original)
+++ httpd/httpd/trunk/modules/database/mod_dbd.c Fri Aug 18 05:38:28 2006
@@ -151,6 +151,8 @@
     const char *key = s->server_hostname;
     if (key == NULL) {
         key = default_hostname;
+        ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, s,
+                     "DBD: ServerName should be set before declaring any prepared statements");
     }
     prepared->label = label;
     prepared->query = query;



Mime
View raw message