From 0bafc4b2f9d9cd01596f28862e6c105af666ec30 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Jul 2018 22:01:39 +0300 Subject: Replace item id shorts to int in map server. --- src/plugins/db2sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/db2sql.c') diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index 38e5ead5d..feb27f834 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -242,7 +242,7 @@ int itemdb2sql_sub(struct config_setting_t *entry, int n, const char *source) StrBuf->Init(&buf); // id - StrBuf->Printf(&buf, "'%u',", it->nameid); + StrBuf->Printf(&buf, "'%u',", (uint32)it->nameid); // name_english SQL->EscapeString(NULL, e_name, it->name); -- cgit v1.2.3-70-g09d2 From 9b6d8636d496f2002e95103af5d53126bba63af9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 16 Jul 2018 23:03:17 +0300 Subject: Update db2sql plugin with support for 32 bit item id. --- src/plugins/db2sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/db2sql.c') diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index feb27f834..57e68432e 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -449,7 +449,7 @@ void itemdb2sql_tableheader(void) "\n" "DROP TABLE IF EXISTS `%s`;\n" "CREATE TABLE `%s` (\n" - " `id` smallint(5) UNSIGNED NOT NULL DEFAULT '0',\n" + " `id` int(11) UNSIGNED NOT NULL DEFAULT '0',\n" " `name_english` varchar(50) NOT NULL DEFAULT '',\n" " `name_japanese` varchar(50) NOT NULL DEFAULT '',\n" " `type` tinyint(2) UNSIGNED NOT NULL DEFAULT '0',\n" -- cgit v1.2.3-70-g09d2