Minor changes in sql classes

This commit is contained in:
Eduardo Bart 2013-01-08 17:44:05 -02:00
parent 9d5abb0243
commit a8d3bb97ea
2 changed files with 4 additions and 3 deletions

View File

@ -176,7 +176,7 @@ uint64_t DatabaseMySQL::getLastInsertedRowID()
std::string DatabaseMySQL::escapeString(const std::string &s) std::string DatabaseMySQL::escapeString(const std::string &s)
{ {
return escapeBlob( s.c_str(), s.length() ); return escapeBlob(s.c_str(), s.length());
} }
std::string DatabaseMySQL::escapeBlob(const char* s, uint32_t length) std::string DatabaseMySQL::escapeBlob(const char* s, uint32_t length)

View File

@ -73,6 +73,7 @@ public:
std::string getDataString(const std::string &s); std::string getDataString(const std::string &s);
bool next(); bool next();
int getRowCount() { return mysql_num_rows(m_res); }
private: private:
typedef std::map<const std::string, uint32_t> ListNames; typedef std::map<const std::string, uint32_t> ListNames;