diff options
author | Edward Rudd | 2004-03-05 00:30:58 +0000 |
---|---|---|
committer | Edward Rudd | 2004-03-05 00:30:58 +0000 |
commit | 6ad58b7d5c5d0ca53ec644021f0108811bceac4a (patch) | |
tree | 5556cfe9eed0c379b875d38eeac556a32f8b5f6d /mod_log_sql_mysql.c | |
parent | a3d0fadb9bbc2a70cac6d46b768822b1875a1811 (diff) |
updated compatability header for Apache 1.3
Changed log_error routing for Apache 1.3 to include APLOG_NOERRNO
re-added quarter second delay between reconnect and query retry.
updated makefile to generate HTML version of docbook docs.
added comments to mod_log_sql_mysql.c
updated documentation about --with-db-inc configure option
Diffstat (limited to 'mod_log_sql_mysql.c')
-rw-r--r-- | mod_log_sql_mysql.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod_log_sql_mysql.c b/mod_log_sql_mysql.c index 86c259a..edc0189 100644 --- a/mod_log_sql_mysql.c +++ b/mod_log_sql_mysql.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: mod_log_sql_mysql.c,v 1.3 2004/03/04 05:41:12 urkle Exp $ */ | 1 | /* $Id: mod_log_sql_mysql.c,v 1.4 2004/03/05 00:30:58 urkle Exp $ */ |
2 | #include "mysql.h" | 2 | #include "mysql.h" |
3 | #include "mysqld_error.h" | 3 | #include "mysqld_error.h" |
4 | 4 | ||
@@ -62,6 +62,7 @@ logsql_opendb_ret log_sql_mysql_connect(server_rec *s, logsql_dbconnection *db) | |||
62 | } | 62 | } |
63 | } | 63 | } |
64 | 64 | ||
65 | /* Close the DB link */ | ||
65 | void log_sql_mysql_close(logsql_dbconnection *db) | 66 | void log_sql_mysql_close(logsql_dbconnection *db) |
66 | { | 67 | { |
67 | mysql_close((MYSQL *)db->handle); | 68 | mysql_close((MYSQL *)db->handle); |
@@ -108,6 +109,7 @@ const char *log_sql_mysql_escape(const char *from_str, apr_pool_t *p, | |||
108 | } | 109 | } |
109 | } | 110 | } |
110 | 111 | ||
112 | /* Run a mysql insert query and return a categorized error or success */ | ||
111 | logsql_query_ret log_sql_mysql_query(request_rec *r,logsql_dbconnection *db, | 113 | logsql_query_ret log_sql_mysql_query(request_rec *r,logsql_dbconnection *db, |
112 | const char *query) | 114 | const char *query) |
113 | { | 115 | { |
@@ -144,6 +146,7 @@ logsql_query_ret log_sql_mysql_query(request_rec *r,logsql_dbconnection *db, | |||
144 | return LOGSQL_QUERY_FAIL; | 146 | return LOGSQL_QUERY_FAIL; |
145 | } | 147 | } |
146 | 148 | ||
149 | /* Create table table_name of type table_type. */ | ||
147 | logsql_table_ret log_sql_mysql_create(request_rec *r, logsql_dbconnection *db, | 150 | logsql_table_ret log_sql_mysql_create(request_rec *r, logsql_dbconnection *db, |
148 | logsql_tabletype table_type, const char *table_name) | 151 | logsql_tabletype table_type, const char *table_name) |
149 | { | 152 | { |