Commit d9db5b96 authored by Steven Murray's avatar Steven Murray
Browse files

Temporarily preventing Conn::executeNonQuery() from throwing UnexpectedSemicolon

parent 440cd2b9
......@@ -144,11 +144,11 @@ void Conn::executeNonQueries(const std::string &sqlStmts) {
//------------------------------------------------------------------------------
void Conn::executeNonQuery(const std::string &sql) {
if(nullptr != m_connAndStmts && nullptr != m_connAndStmts->conn) {
if(std::string::npos != sql.find(";")) {
UnexpectedSemicolon ex;
ex.getMessage() << "Encountered unexpected semicolon in " << getSqlForException(sql);
throw ex;
}
// if(std::string::npos != sql.find(";")) {
// UnexpectedSemicolon ex;
// ex.getMessage() << "Encountered unexpected semicolon in " << getSqlForException(sql);
// throw ex;
// }
m_connAndStmts->conn->executeNonQuery(sql);
} else {
throw exception::Exception(std::string(__FUNCTION__) + " failed: Conn does not contain a connection");
......
......@@ -149,7 +149,7 @@ TEST_P(cta_rdbms_ConnTest, createTableInMemoryDatabase_executeNonQuery) {
}
}
TEST_P(cta_rdbms_ConnTest, createTableInMemoryDatabase_executeNonQuery_semicolon) {
TEST_P(cta_rdbms_ConnTest, DISABLED_createTableInMemoryDatabase_executeNonQuery_semicolon) {
using namespace cta::rdbms;
const std::string sql = "CREATE TABLE POOLED_STMT_TEST(ID INTEGER);";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment