Skip to content
Snippets Groups Projects
Commit a1e4fafc authored by Steven Murray's avatar Steven Murray
Browse files

Made rdbms::Stmt::m_sql and m_autoCommitMode private

parent 6d5c0c3f
Branches
Tags
No related merge requests found
......@@ -47,7 +47,7 @@ SqliteStmt::SqliteStmt(
const uint maxPrepareRetries = 20; // A worst case scenario of 2 seconds
for(unsigned int i = 1; i <= maxPrepareRetries; i++) {
const int prepareRc = sqlite3_prepare_v2(m_conn.m_sqliteConn, m_sql.c_str(), nByte, &m_stmt, nullptr);
const int prepareRc = sqlite3_prepare_v2(m_conn.m_sqliteConn, getSql().c_str(), nByte, &m_stmt, nullptr);
if(SQLITE_OK == prepareRc) {
break;
......
......@@ -182,16 +182,6 @@ public:
protected:
/**
* The SQL statement.
*/
std::string m_sql;
/**
* The autocommit mode of the statement.
*/
AutocommitMode m_autoCommitMode;
/**
* The maximum length an SQL statement can have in exception error message.
*/
......@@ -211,6 +201,16 @@ protected:
private:
/**
* The SQL statement.
*/
std::string m_sql;
/**
* The autocommit mode of the statement.
*/
AutocommitMode m_autoCommitMode;
/**
* Map from SQL parameter name to parameter index.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment