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

Removed Stmt::setNbParamSets() and startNextParamSet()

parent 4bd4cf0f
No related branches found
No related tags found
No related merge requests found
......@@ -166,36 +166,6 @@ void OcciStmt::bindOptionalString(const std::string &paramName, const optional<s
}
}
//------------------------------------------------------------------------------
// setNbParamSets
//------------------------------------------------------------------------------
void OcciStmt::setNbParamSets(const uint32_t nbParamSets) {
try {
m_stmt->setMaxIterations(nbParamSets);
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed for SQL statement " +
getSqlForException() + ": " + ex.getMessage().str());
} catch(std::exception &se) {
throw exception::Exception(std::string(__FUNCTION__) + " failed for SQL statement " +
getSqlForException() + ": " + se.what());
}
}
//------------------------------------------------------------------------------
// startNextParamSet
//------------------------------------------------------------------------------
void OcciStmt::startNextParamSet() {
try {
m_stmt->addIteration();
} catch(exception::Exception &ex) {
throw exception::Exception(std::string(__FUNCTION__) + " failed for SQL statement " +
getSqlForException() + ": " + ex.getMessage().str());
} catch(std::exception &se) {
throw exception::Exception(std::string(__FUNCTION__) + " failed for SQL statement " +
getSqlForException() + ": " + se.what());
}
}
//------------------------------------------------------------------------------
// executeQuery
//------------------------------------------------------------------------------
......
......@@ -116,20 +116,6 @@ public:
*/
void bindOptionalString(const std::string &paramName, const optional<std::string> &paramValue) override;
/**
* Sets the total number of parameter sets that will be entered for the next
* execution of this statement.
*
* @param nbParamSets The total numer of parameter sets
*/
void setNbParamSets(const uint32_t nbParamSets) override;
/**
* Starts the next parameter set to be be entered for the next execution of
* this statement.
*/
void startNextParamSet() override;
/**
* Executes the statement and returns the result set.
*
......
......@@ -205,20 +205,6 @@ void SqliteStmt::bindOptionalString(const std::string &paramName, const optional
}
}
//------------------------------------------------------------------------------
// setNbParamSets
//------------------------------------------------------------------------------
void SqliteStmt::setNbParamSets(const uint32_t nbParamSets) {
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
//------------------------------------------------------------------------------
// startNextParamSet
//------------------------------------------------------------------------------
void SqliteStmt::startNextParamSet() {
throw exception::Exception(std::string(__FUNCTION__) + " not implemented");
}
//------------------------------------------------------------------------------
// executeQuery
//------------------------------------------------------------------------------
......
......@@ -111,20 +111,6 @@ public:
*/
void bindOptionalString(const std::string &paramName, const optional<std::string> &paramValue) override;
/**
* Sets the total number of parameter sets that will be entered for the next
* execution of this statement.
*
* @param nbParamSets The total numer of parameter sets
*/
void setNbParamSets(const uint32_t nbParamSets) override;
/**
* Starts the next parameter set to be be entered for the next execution of
* this statement.
*/
void startNextParamSet() override;
/**
* Executes the statement and returns the result set.
*
......
......@@ -150,20 +150,6 @@ public:
*/
virtual void bindOptionalString(const std::string &paramName, const optional<std::string> &paramValue) = 0;
/**
* Sets the total number of parameter sets that will be entered for the next
* execution of this statement.
*
* @param nbParamSets The total numer of parameter sets
*/
virtual void setNbParamSets(const uint32_t nbParamSets) = 0;
/**
* Starts the next parameter set to be be entered for the next execution of
* this statement.
*/
virtual void startNextParamSet() = 0;
/**
* Executes the statement and returns the result set.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment