Skip to content

Commit

Permalink
fixed DBConnectBase; fixe hkuserver xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed May 2, 2021
1 parent b9a1d67 commit dc6db4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hikyuu_cpp/hikyuu/utilities/db_connect/DBConnectBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -431,13 +431,13 @@ inline void DBConnectBase::batchRemove(InputIterator first, InputIterator last,
if (autotrans) {
rollback();
}
HKU_THROW("failed batch delete! sql: {}! {}", st->getSqlString(), e.what());
HKU_THROW("failed batch delete! {}", e.what());

} catch (...) {
if (autotrans) {
rollback();
}
HKU_THROW("failed batch delete! sql: {}! Unknown error!", st->getSqlString());
HKU_THROW("failed batch delete! Unknown error!");
}
}

Expand Down
2 changes: 1 addition & 1 deletion hikyuu_cpp/hikyuu_server/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ target("hkuserver")
--add_files("./main.cpp")

after_build(function(target)
os.cp("$(project)/hikyuu_cpp/hikyuu_server/i8n", "$(buildir)/$(mode)/$(plat)/$(arch)/lib/i8n")
os.cp("$(projectdir)/hikyuu_cpp/hikyuu_server/i8n/", "$(buildir)/$(mode)/$(plat)/$(arch)/lib/i8n")
end)

target_end()

0 comments on commit dc6db4c

Please sign in to comment.