From 066e5b3fc08b6b85311e29aad6e78f12aba1a30e Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 4 Nov 2011 02:28:21 -0400 Subject: Delete all tables before flushing not just ones we know about --- modules/extra/m_mysql.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/extra/m_mysql.cpp') diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 876d2ae4e..61e6c39c9 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -125,6 +125,8 @@ class MySQLService : public SQLProvider SQLQuery CreateTable(const Anope::string &table, const SerializableBase::serialized_data &data); + SQLQuery GetTables(); + void Connect(); bool CheckConnection(); @@ -374,6 +376,11 @@ SQLQuery MySQLService::CreateTable(const Anope::string &table, const Serializabl return SQLQuery(query_text); } +SQLQuery MySQLService::GetTables() +{ + return SQLQuery("SHOW TABLES"); +} + void MySQLService::Connect() { this->sql = mysql_init(this->sql); -- cgit