diff options
author | Nick Kew <niq@apache.org> | 2006-08-18 12:38:28 +0000 |
---|---|---|
committer | Nick Kew <niq@apache.org> | 2006-08-18 12:38:28 +0000 |
commit | 5c94bb01409c1027defd353ed3f81eb1ecb48d75 (patch) | |
tree | 9c1b4b2273f68f1e73d043b698364991482aaad0 | |
parent | 07e5187677255b67329c84bccff579c8858cbf0b (diff) | |
download | httpd-5c94bb01409c1027defd353ed3f81eb1ecb48d75.tar.gz |
Log a message if we try to prepare a statement not attached to a hostname.
This fix supplements r432560 (don't crash).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@432562 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/database/mod_dbd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/database/mod_dbd.c b/modules/database/mod_dbd.c index 76eeca2b4c..af404d494e 100644 --- a/modules/database/mod_dbd.c +++ b/modules/database/mod_dbd.c @@ -151,6 +151,8 @@ DBD_DECLARE_NONSTD(void) ap_dbd_prepare(server_rec *s, const char *query, 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; |