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

Replaced 'unsigned int' with uint32_t

parent f7e91b32
Branches
Tags
No related merge requests found
......@@ -30,7 +30,7 @@ namespace rdbms {
ParamNameToIdx::ParamNameToIdx(const std::string &sql) {
bool waitingForAParam = true;
std::ostringstream paramName;
unsigned int paramIdx = 1;
uint32_t paramIdx = 1;
for(const char *ptr = sql.c_str(); ; ptr++) {
if(waitingForAParam) {
......@@ -81,7 +81,7 @@ bool ParamNameToIdx::isValidParamNameChar(const char c) {
//------------------------------------------------------------------------------
// getIdx
//------------------------------------------------------------------------------
unsigned int ParamNameToIdx::getIdx(const std::string &paramName) const {
uint32_t ParamNameToIdx::getIdx(const std::string &paramName) const {
auto itor = m_nameToIdx.find(paramName);
if(itor == m_nameToIdx.end()) {
throw exception::Exception(std::string(__FUNCTION__) + " failed: The SQL parameter " + paramName +
......
......@@ -17,6 +17,7 @@
*/
#include <map>
#include <stdint.h>
#include <string>
namespace cta {
......@@ -43,14 +44,14 @@ public:
* @param paramNAme The name of the SQL parameter.
* @return The index of the SQL parameter.
*/
unsigned int getIdx(const std::string &paramName) const;
uint32_t getIdx(const std::string &paramName) const;
private:
/**
* Map from SQL parameter name to parameter index.
*/
std::map<std::string, unsigned int> m_nameToIdx;
std::map<std::string, uint32_t> m_nameToIdx;
/**
* Returns true if the specified character is a valid parameter name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment