Minor changes in sql classes
This commit is contained in:
parent
9d5abb0243
commit
a8d3bb97ea
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue