summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2005-01-11 21:05:34 +0000
committerGravatar Edward Rudd 2005-01-11 21:05:34 +0000
commitebfb95c7a71c06a95f2e0a067481b229853331f7 (patch)
tree2981d87e9d520d0a620351cbe15afd711f109e00
parentb5ac0bac5a4c6f70302b14691933e9c742cd4db9 (diff)
fixed bug #0000014
-rw-r--r--mod_log_sql.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 13a7eb8..5b86147 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -180,13 +180,6 @@ static logsql_opendb_ret log_sql_opendb_link(server_rec* s)
180 } 180 }
181} 181}
182 182
183/*static const char *extract_table(void *data, const char *key, const char *val)
184{
185 request_rec *r = (request_rec *)data;
186
187 return apr_pstrcat(r->pool, key, " = ", val, " ", NULL);
188}*/
189
190static void preserve_entry(request_rec *r, const char *query) 183static void preserve_entry(request_rec *r, const char *query)
191{ 184{
192 logsql_state *cls = ap_get_module_config(r->server->module_config, 185 logsql_state *cls = ap_get_module_config(r->server->module_config,
@@ -927,7 +920,7 @@ static int log_sql_transaction(request_rec *orig)
927 itemsets = apr_pstrcat(r->pool, itemsets, 920 itemsets = apr_pstrcat(r->pool, itemsets,
928 (i > 0 ? "," : ""), 921 (i > 0 ? "," : ""),
929 "(", 922 "(",
930 unique_id, 923 global_config.driver->escape(unique_id, r->pool, &global_config.db),
931 ",", 924 ",",
932 global_config.driver->escape(*ptrptr, r->pool,&global_config.db), 925 global_config.driver->escape(*ptrptr, r->pool,&global_config.db),
933 ",", 926 ",",
@@ -955,7 +948,7 @@ static int log_sql_transaction(request_rec *orig)
955 itemsets = apr_pstrcat(r->pool, itemsets, 948 itemsets = apr_pstrcat(r->pool, itemsets,
956 (i > 0 ? "," : ""), 949 (i > 0 ? "," : ""),
957 "(", 950 "(",
958 unique_id, 951 global_config.driver->escape(unique_id, r->pool, &global_config.db),
959 ",", 952 ",",
960 global_config.driver->escape(*ptrptr, r->pool,&global_config.db), 953 global_config.driver->escape(*ptrptr, r->pool,&global_config.db),
961 ",", 954 ",",
@@ -984,7 +977,7 @@ static int log_sql_transaction(request_rec *orig)
984 itemsets = apr_pstrcat(r->pool, itemsets, 977 itemsets = apr_pstrcat(r->pool, itemsets,
985 (i > 0 ? "," : ""), 978 (i > 0 ? "," : ""),
986 "(", 979 "(",
987 unique_id, 980 global_config.driver->escape(unique_id, r->pool, &global_config.db),
988 ",", 981 ",",
989 global_config.driver->escape(*ptrptr, r->pool,&global_config.db), 982 global_config.driver->escape(*ptrptr, r->pool,&global_config.db),
990 ",", 983 ",",
@@ -1013,7 +1006,7 @@ static int log_sql_transaction(request_rec *orig)
1013 itemsets = apr_pstrcat(r->pool, itemsets, 1006 itemsets = apr_pstrcat(r->pool, itemsets,
1014 (i > 0 ? "," : ""), 1007 (i > 0 ? "," : ""),
1015 "(", 1008 "(",
1016 unique_id, 1009 global_config.driver->escape(unique_id, r->pool, &global_config.db),
1017 ",", 1010 ",",
1018 global_config.driver->escape(*ptrptr, r->pool,&global_config.db), 1011 global_config.driver->escape(*ptrptr, r->pool,&global_config.db),
1019 ",", 1012 ",",