summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-11-16 01:56:27 +0100
committerHaru <haru@dotalux.com>2014-11-16 07:16:22 +0100
commitd5e8c4e4b75636451782098929699eb97cebebe4 (patch)
tree3d55f1ea8d423dac4d2de2446648e8d687e2db1f
parent0689839791af36fc9207a6b6ddcc03f9dfc04692 (diff)
downloadhercules-d5e8c4e4b75636451782098929699eb97cebebe4.tar.gz
hercules-d5e8c4e4b75636451782098929699eb97cebebe4.tar.bz2
hercules-d5e8c4e4b75636451782098929699eb97cebebe4.tar.xz
hercules-d5e8c4e4b75636451782098929699eb97cebebe4.zip
Moved sql_s into sql.c
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/common/sql.c2
-rw-r--r--src/common/sql.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/sql.c b/src/common/sql.c
index 8ae9d3cdb..c75b90cec 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -25,6 +25,8 @@ void hercules_mysql_error_handler(unsigned int ecode);
int mysql_reconnect_type;
unsigned int mysql_reconnect_count;
+struct sql_interface sql_s;
+
/// Sql handle
struct Sql {
StringBuf buf;
diff --git a/src/common/sql.h b/src/common/sql.h
index b1f1f41c3..9a79b3f33 100644
--- a/src/common/sql.h
+++ b/src/common/sql.h
@@ -267,7 +267,7 @@ struct sql_interface {
void (*StmtShowDebug_)(SqlStmt* self, const char* debug_file, const unsigned long debug_line);
-} sql_s;
+};
struct sql_interface *SQL;