master #6
@ -76,7 +76,7 @@ namespace iu9cawebchat {
|
||||
|
||||
int ret = sqlite3_prepare_v2(connection.hand, req_statement.c_str(), -1, &stmt_obj, NULL);
|
||||
if (ret != 0) {
|
||||
int err_pos = sqlite3_error_offset(connection.hand);
|
||||
int err_pos = -1;
|
||||
een9_THROW("Compilation of request\n" + req_statement + "\nfailed" +
|
||||
((err_pos >= 0) ? " with offset " + std::to_string(err_pos) : ""));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user