From c255837018486684af56c6c2286560f446aa3972 Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 22 Oct 2015 12:54:51 +0200 Subject: Updated db2sql plugin Signed-off-by: Haru --- src/plugins/db2sql.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2