summaryrefslogtreecommitdiffstats
path: root/mod_log_sql.c
diff options
context:
space:
mode:
authorGravatar Christopher Powell 2002-12-10 20:37:29 +0000
committerGravatar Christopher Powell 2002-12-10 20:37:29 +0000
commita82db79fcf12e4a414c0a0862ed38b9e3a964c70 (patch)
tree0ae9486ca9f56b3b90df3232a3acfe1d5681b941 /mod_log_sql.c
parent478975f1c8767c7ae2abb284ecda41185df32f11 (diff)
*** empty log message ***
Diffstat (limited to 'mod_log_sql.c')
-rw-r--r--mod_log_sql.c45
1 files changed, 1 insertions, 44 deletions
diff --git a/mod_log_sql.c b/mod_log_sql.c
index 117111b..d58839b 100644
--- a/mod_log_sql.c
+++ b/mod_log_sql.c
@@ -1,4 +1,4 @@
1/* $Id: mod_log_sql.c,v 1.20 2002/12/10 19:43:21 helios Exp $ */ 1/* $Id: mod_log_sql.c,v 1.21 2002/12/10 20:37:28 helios Exp $ */
2 2
3/* --------* 3/* --------*
4 * DEFINES * 4 * DEFINES *
@@ -1677,46 +1677,3 @@ module sql_log_module = {
1677#endif 1677#endif
1678 1678
1679}; 1679};
1680
1681
1682
1683/* Make the tables if we're supposed to. */
1684/*
1685if ((cls->table_made != 1) && (create_tables != 0)) {
1686 result = safe_create_tables(cls, orig);
1687 if (result != 0)
1688 ap_log_error(APLOG_MARK,ERRLEVEL,orig->server,"mod_log_sql: child attempted but failed to create one or more tables for %s", ap_get_server_name(orig));
1689 else
1690 ap_log_error(APLOG_MARK,NOTICELEVEL,orig->server,"mod_log_sql: no problems creating tables for %s", ap_get_server_name(orig));
1691}
1692*/
1693
1694/* It failed, but NOT because table didn't exist */
1695/*
1696if ( (result) && (result != ER_NO_SUCH_TABLE) )
1697 preserve_entry(orig,access_query);
1698*/
1699
1700/* It failed because table didn't exist */
1701/*
1702if (result == ER_NO_SUCH_TABLE)
1703 if (create_tables) {
1704 ap_log_error(APLOG_MARK,ERRLEVEL,orig->server,"mod_log_sql: access table doesn't exist...creating now");
1705 if ((result = safe_create_tables(cls, orig))) {
1706 ap_log_error(APLOG_MARK,ERRLEVEL,orig->server,"mod_log_sql: child attempted but failed to create one or more tables for %s, preserving query", ap_get_server_name(orig));
1707 preserve_entry(orig,access_query);
1708 } else {
1709 ap_log_error(APLOG_MARK,ERRLEVEL,orig->server,"mod_log_sql: table(s) successfully created - retrying insert");
1710 if ((result = safe_mysql_query(orig, access_query))) {
1711 ap_log_error(APLOG_MARK,ERRLEVEL,orig->server,"mod_log_sql: giving up, preserving query");
1712 preserve_entry(orig,access_query);
1713 return OK;
1714 } else
1715 ap_log_error(APLOG_MARK_ERRLEVEL,orig->server,"mod_log_sql: insert successful after table creation");
1716 }
1717 } else {
1718 ap_log_error(APLOG_MARK,ERRLEVEL,orig->server,"mod_log_sql: access table doesn't exist...not allowed to create, giving up, preserving query");
1719 preserve_entry(orig,access_query);
1720 return OK;
1721 }
1722*/