summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-10-22 12:54:51 +0200
committerHaru <haru@dotalux.com>2015-10-22 12:54:51 +0200
commitc255837018486684af56c6c2286560f446aa3972 (patch)
treec818c60b8ce44b1daf0683715a095040a22a0fca /src/plugins
parent95c3844754b1649aaa4866e1e65034ad24a1cafe (diff)
downloadhercules-c255837018486684af56c6c2286560f446aa3972.tar.gz
hercules-c255837018486684af56c6c2286560f446aa3972.tar.bz2
hercules-c255837018486684af56c6c2286560f446aa3972.tar.xz
hercules-c255837018486684af56c6c2286560f446aa3972.zip
Updated db2sql plugin
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/db2sql.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c
index 50781f319..6d4a7789c 100644
--- a/src/plugins/db2sql.c
+++ b/src/plugins/db2sql.c
@@ -290,11 +290,6 @@ void totable(void) {
"\n",tosql.db_name,tosql.db_name,tosql.db_name);
}
void do_db2sql(void) {
- if( map->db_use_sql_item_db ) {
- ShowInfo("db2sql: this should not be used with 'db_use_sql_item_db' enabled, skipping...\n");
- return;
- }
-
/* link */
itemdb_readdb_libconfig_sub = itemdb->readdb_libconfig_sub;
itemdb->readdb_libconfig_sub = db2sql;
@@ -305,7 +300,7 @@ void do_db2sql(void) {
return;
}
- tosql.db_name = map->item_db_db;
+ tosql.db_name = "item_db";
totable();
memset(&tosql.buf, 0, sizeof(tosql.buf) );
@@ -320,7 +315,7 @@ void do_db2sql(void) {
return;
}
- tosql.db_name = map->item_db_db;
+ tosql.db_name = "item_db";
totable();
itemdb->clear(false);
@@ -333,7 +328,7 @@ void do_db2sql(void) {
return;
}
- tosql.db_name = map->item_db2_db;
+ tosql.db_name = "item_db2";
totable();
itemdb->clear(false);