summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-11 17:56:48 -0200
committerHaru <haru@dotalux.com>2013-11-14 20:15:28 +0100
commit091e235b78f83bd8c86c84e8b2db5ac9d5da98cd (patch)
tree79979f1f69e971be3c857b2a198977dc62f33348 /src/common
parent59b9acb3d50fe7bbcce0f141d450cf328c0b24b7 (diff)
downloadhercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.gz
hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.bz2
hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.tar.xz
hercules-091e235b78f83bd8c86c84e8b2db5ac9d5da98cd.zip
Updated db2sql plugin for the needs of the new itemdb
May be used as ./map-server --db2sql or by typing "server tools db2sql" within map-server console parse. Special Thanks to Haruna. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/HPM.c4
-rw-r--r--src/common/sql.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index 81acb3415..1f4d4d532 100644
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -640,7 +640,9 @@ void hplugins_share_defaults(void) {
HPM->share(SQL,"SQL");
/* timer */
HPM->share(timer,"timer");
-
+ /* libconfig (temp) */
+ HPM->share(config_setting_lookup_string,"config_setting_lookup_string");
+ HPM->share(config_setting_lookup_int,"config_setting_lookup_int");
}
void hpm_init(void) {
diff --git a/src/common/sql.c b/src/common/sql.c
index dc6c4c569..0e06d6d18 100644
--- a/src/common/sql.c
+++ b/src/common/sql.c
@@ -1005,6 +1005,9 @@ void Sql_HerculesUpdateCheck(Sql* self) {
unsigned int performed = 0;
StringBuf buf;
+ if( self == NULL )
+ return;/* return silently, build has no mysql connection */
+
if( !( ifp = fopen("sql-files/upgrades/index.txt", "r") ) ) {
ShowError("SQL upgrade index was not found!\n");
return;