summaryrefslogtreecommitdiff
path: root/src/plugins/db2sql.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-23 01:04:25 +0200
committerGitHub <noreply@github.com>2018-07-23 01:04:25 +0200
commitbe3209bc5ff1b88314c47a6fdc53d73deaa9e96a (patch)
treea12e7ac7b7e6ae8410ba170d345a3022da0e51a5 /src/plugins/db2sql.c
parentbcaf5eaa9c8ef65068ab5468d7bd13e2df516cab (diff)
parent6c73aa1b03b04d4d9a2ba9056b8583475856da12 (diff)
downloadhercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.tar.gz
hercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.tar.bz2
hercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.tar.xz
hercules-be3209bc5ff1b88314c47a6fdc53d73deaa9e96a.zip
Merge pull request #2134 from 4144/itemint
Update int fields to using int32
Diffstat (limited to 'src/plugins/db2sql.c')
-rw-r--r--src/plugins/db2sql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c
index 38e5ead5d..57e68432e 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);
@@ -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"