summaryrefslogtreecommitdiffstats
path: root/mod_log_sql_mysql.c
diff options
context:
space:
mode:
Diffstat (limited to 'mod_log_sql_mysql.c')
-rw-r--r--mod_log_sql_mysql.c5
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 */
65void log_sql_mysql_close(logsql_dbconnection *db) 66void 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 */
111logsql_query_ret log_sql_mysql_query(request_rec *r,logsql_dbconnection *db, 113logsql_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. */
147logsql_table_ret log_sql_mysql_create(request_rec *r, logsql_dbconnection *db, 150logsql_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{