diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/db2sql.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/db2sql.c b/src/plugins/db2sql.c index e1ab26f30..47c85c2f0 100644 --- a/src/plugins/db2sql.c +++ b/src/plugins/db2sql.c @@ -155,6 +155,19 @@ void do_db2sql(void) { fclose(tosql.fp); + if ((tosql.fp = fopen("sql-files/item_db2.sql", "wt+")) == NULL) { + ShowError("itemdb_tosql: File not found \"%s\".\n", "sql-files/item_db2.sql"); + return; + } + + tosql.db_name = map->item_db2_db; + totable(); + + itemdb->clear(false); + itemdb->readdb("item_db2.conf"); + + fclose(tosql.fp); + /* unlink */ itemdb->readdb_libconfig_sub = itemdb_readdb_libconfig_sub; |