You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ni...@apache.org on 2006/08/18 14:38:28 UTC
svn commit: r432562 - /httpd/httpd/trunk/modules/database/mod_dbd.c
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;