summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.c
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2005-08-31 06:14:18 +0000
committerGravatar Edward Rudd 2005-08-31 06:14:18 +0000
commit141cf421e03092da2c7ded824e6adae973ef4b84 (patch)
treece3be5c16b8b0dc11834f8127a91ee4e052f7e23 /mod_log_sql.c
parent367599e034c97b9f4a353ae4362f32709a0eb286 (diff)
fix for issue #41
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r--mod_log_sql.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 5b86147..d92df49 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -666,6 +666,7 @@ static int in_array(apr_array_header_t *ary, const char *elem)
666 666
667 667
668/* Parse through cookie lists and merge based on +/- prefixes */ 668/* Parse through cookie lists and merge based on +/- prefixes */
669/* TODO: rewrite as a function */
669#define DO_MERGE_ARRAY(parent,child,pool) \ 670#define DO_MERGE_ARRAY(parent,child,pool) \
670if (apr_is_empty_array(child)) { \ 671if (apr_is_empty_array(child)) { \
671 apr_array_cat(child, parent); \ 672 apr_array_cat(child, parent); \
@@ -930,7 +931,7 @@ static int log_sql_transaction(request_rec *orig)
930 i++; 931 i++;
931 } 932 }
932 } 933 }
933 if ( itemsets != "" ) { 934 if ( *itemsets != '\0' ) {
934 note_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s", 935 note_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s",
935 /*global_config.insertdelayed?"delayed":*/"", notes_tablename, itemsets); 936 /*global_config.insertdelayed?"delayed":*/"", notes_tablename, itemsets);
936 937
@@ -958,7 +959,7 @@ static int log_sql_transaction(request_rec *orig)
958 i++; 959 i++;
959 } 960 }
960 } 961 }
961 if ( itemsets != "" ) { 962 if ( *itemsets != '\0' ) {
962 hout_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s", 963 hout_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s",
963 /*global_config.insertdelayed?"delayed":*/"", hout_tablename, itemsets); 964 /*global_config.insertdelayed?"delayed":*/"", hout_tablename, itemsets);
964 965
@@ -987,7 +988,7 @@ static int log_sql_transaction(request_rec *orig)
987 i++; 988 i++;
988 } 989 }
989 } 990 }
990 if ( itemsets != "" ) { 991 if ( *itemsets != '\0' ) {
991 hin_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s", 992 hin_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s",
992 /*global_config.insertdelayed?"delayed":*/"", hin_tablename, itemsets); 993 /*global_config.insertdelayed?"delayed":*/"", hin_tablename, itemsets);
993 994
@@ -1017,7 +1018,7 @@ static int log_sql_transaction(request_rec *orig)
1017 } 1018 }
1018 1019
1019 } 1020 }
1020 if ( itemsets != "" ) { 1021 if ( *itemsets != '\0' ) {
1021 cookie_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s", 1022 cookie_query = apr_psprintf(r->pool, "insert %s into %s (id, item, val) values %s",
1022 /*global_config.insertdelayed?"delayed":*/"", cookie_tablename, itemsets); 1023 /*global_config.insertdelayed?"delayed":*/"", cookie_tablename, itemsets);
1023 1024