u
This commit is contained in:
@@ -25,7 +25,10 @@ inline void commit_picklists(OdbcPool::Connection* c, int kBenutzer, int kSessio
|
||||
};
|
||||
ResultSet rs;
|
||||
if (!get_pool().execute(c, sql, ps, rs)) {
|
||||
throw std::runtime_error("commit_picklists failed");
|
||||
const std::string& detail = get_pool().last_error();
|
||||
throw std::runtime_error(detail.empty()
|
||||
? "commit_picklists failed"
|
||||
: "commit_picklists failed: " + detail);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user