summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;