diff options
Diffstat (limited to 'src/mod_log_sql_dbd.c')
-rw-r--r-- | src/mod_log_sql_dbd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_log_sql_dbd.c b/src/mod_log_sql_dbd.c index c78a128..e641c35 100644 --- a/src/mod_log_sql_dbd.c +++ b/src/mod_log_sql_dbd.c | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | 9 | ||
10 | #ifdef HAVE_CONFIG_H | 10 | #ifdef HAVE_CONFIG_H |
11 | /* Undefine these to prevent conflicts between Apache ap_config_auto.h and | 11 | /* Undefine these to prevent conflicts between Apache ap_config_auto.h and |
12 | * my config.h. Only really needed for Apache < 2.0.48, but it can't hurt. | 12 | * my config.h. Only really needed for Apache < 2.0.48, but it can't hurt. |
13 | */ | 13 | */ |
14 | #undef PACKAGE_BUGREPORT | 14 | #undef PACKAGE_BUGREPORT |
@@ -17,7 +17,7 @@ | |||
17 | #undef PACKAGE_TARNAME | 17 | #undef PACKAGE_TARNAME |
18 | #undef PACKAGE_VERSION | 18 | #undef PACKAGE_VERSION |
19 | 19 | ||
20 | #include "config.h" | 20 | #include "autoconfig.h" |
21 | #endif | 21 | #endif |
22 | 22 | ||
23 | #include "mod_log_sql.h" | 23 | #include "mod_log_sql.h" |
@@ -66,7 +66,7 @@ static void log_sql_dbd_close(logsql_dbconnection *db) | |||
66 | /* Routine to escape the 'dangerous' characters that would otherwise | 66 | /* Routine to escape the 'dangerous' characters that would otherwise |
67 | * corrupt the INSERT string: ', \, and " | 67 | * corrupt the INSERT string: ', \, and " |
68 | */ | 68 | */ |
69 | static const char *log_sql_dbd_escape(request_rec *r, const char *from_str, apr_pool_t *p, | 69 | static const char *log_sql_dbd_escape(request_rec *r, const char *from_str, apr_pool_t *p, |
70 | logsql_dbconnection *db) | 70 | logsql_dbconnection *db) |
71 | { | 71 | { |
72 | // Acquire a DBD connection from mod_dbd | 72 | // Acquire a DBD connection from mod_dbd |
@@ -90,7 +90,7 @@ static logsql_query_ret log_sql_dbd_query(request_rec *r,logsql_dbconnection *db | |||
90 | ap_dbd_t *dbd = log_sql_dbd_getconnection(r); | 90 | ap_dbd_t *dbd = log_sql_dbd_getconnection(r); |
91 | if (!dbd) return LOGSQL_QUERY_NOLINK; | 91 | if (!dbd) return LOGSQL_QUERY_NOLINK; |
92 | 92 | ||
93 | // Run the query | 93 | // Run the query |
94 | ret = apr_dbd_query(dbd->driver, dbd->handle, &affected, query); | 94 | ret = apr_dbd_query(dbd->driver, dbd->handle, &affected, query); |
95 | if (ret == 0) { | 95 | if (ret == 0) { |
96 | return LOGSQL_QUERY_SUCCESS; | 96 | return LOGSQL_QUERY_SUCCESS; |