summaryrefslogtreecommitdiffstatsabout
path: root/mod_log_sql.c
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2004-07-16 01:33:59 (GMT)
committer Edward Rudd <urkle@outoforder.cc>2004-07-16 01:33:59 (GMT)
commit197e405e8e8ae8e11bb251305043810c7fa93e4e (patch)
treec601e247a7073c6385cf739d96de7399c31b5feb /mod_log_sql.c
parent21122f1bb734aa00fc14564d801ea9dc4804c793 (diff)
fixed another segfault related to the mysql escaping function (forcepreserve bug)
included win32 build bat files in distribution separated -Werror to a configure time option (--enable-maintainer) update autogen to use autoconf 2.57, aclocal 1.7 included pgsql and dbi module source in distribution. setup autodetection in configure script for databases.
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r--mod_log_sql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index dace2d4..7aaa595 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -154,7 +154,7 @@ static logsql_opendb_ret log_sql_opendb_link(server_rec* s)
154{ 154{
155 logsql_opendb_ret result; 155 logsql_opendb_ret result;
156 if (global_config.forcepreserve) { 156 if (global_config.forcepreserve) {
157 global_config.db.connected = 1; 157 //global_config.db.connected = 1;
158 return LOGSQL_OPENDB_PRESERVE; 158 return LOGSQL_OPENDB_PRESERVE;
159 } 159 }
160 if (global_config.db.connected) { 160 if (global_config.db.connected) {
@@ -1054,10 +1054,10 @@ static int log_sql_transaction(request_rec *orig)
1054 1054
1055 /* How's our mysql link integrity? */ 1055 /* How's our mysql link integrity? */
1056 if (!global_config.db.connected) { 1056 if (!global_config.db.connected) {
1057 1057 if (!global_config.forcepreserve) {
1058 /* Make a try to establish the link */ 1058 /* Make a try to establish the link */
1059 log_sql_opendb_link(r->server); 1059 log_sql_opendb_link(r->server);
1060 1060 }
1061 if (!global_config.db.connected) { 1061 if (!global_config.db.connected) {
1062 /* Unable to re-establish a DB link, so assume that it's really 1062 /* Unable to re-establish a DB link, so assume that it's really
1063 * gone and send the entry to the preserve file instead. 1063 * gone and send the entry to the preserve file instead.