diff options
author | shennetsind <ind@henn.et> | 2013-11-11 17:56:48 -0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-11-14 20:15:28 +0100 |
commit | 091e235b78f83bd8c86c84e8b2db5ac9d5da98cd (patch) | |
tree | 79979f1f69e971be3c857b2a198977dc62f33348 /src/common/sql.c | |
parent | 59b9acb3d50fe7bbcce0f141d450cf328c0b24b7 (diff) | |
download | hercules-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/sql.c')
-rw-r--r-- | src/common/sql.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |