From 091e235b78f83bd8c86c84e8b2db5ac9d5da98cd Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 11 Nov 2013 17:56:48 -0200 Subject: 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 --- src/common/sql.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/sql.c') 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; -- cgit v1.2.3-70-g09d2