Add getIp function, remove unused sql function

This commit is contained in:
Henrique Santiago
2012-08-12 01:54:45 -03:00
parent 8753f82fd0
commit 7fb2f6deb5
5 changed files with 12 additions and 21 deletions

View File

@@ -263,25 +263,6 @@ std::string DBResult::getDataString(const std::string &s)
return std::string("");
}
const char* DBResult::getDataStream(const std::string &s, unsigned long &size)
{
ListNames::iterator it = m_listNames.find(s);
if(it != m_listNames.end() ) {
if(m_row[it->second] == NULL) {
size = 0;
return NULL;
}
else {
size = mysql_fetch_lengths(m_res)[it->second];
return m_row[it->second];
}
}
g_logger.error(stdext::format("error during getDataStream(%s).", s));
size = 0;
return NULL;
}
bool DBResult::next()
{
m_row = mysql_fetch_row(m_res);

View File

@@ -71,7 +71,6 @@ public:
int32_t getDataInt(const std::string &s);
int64_t getDataLong(const std::string &s);
std::string getDataString(const std::string &s);
const char* getDataStream(const std::string &s, unsigned long &size);
bool next();