summaryrefslogtreecommitdiff
path: root/src/poi-service/poi-server/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/poi-service/poi-server/main.cpp')
-rw-r--r--src/poi-service/poi-server/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/poi-service/poi-server/main.cpp b/src/poi-service/poi-server/main.cpp
index b581e74..1c5a999 100644
--- a/src/poi-service/poi-server/main.cpp
+++ b/src/poi-service/poi-server/main.cpp
@@ -691,7 +691,7 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa
// so we can update some tables into the constructor
// retrieve the available categories (the ones that have at least one record)
- query_result = mp_database->queryNotUTF(SQL_REQUEST_GET_AVAILABLE_CATEGORIES);
+ query_result = mp_database->query(SQL_REQUEST_GET_AVAILABLE_CATEGORIES);
if (query_result.empty())
{
onError(); //database is not well populated
@@ -713,7 +713,7 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa
strStream << value;
sqlQuery += strStream.str();
sqlQuery += ");";
- additionnal_query_result = mp_database->queryNotUTF(sqlQuery.c_str());
+ additionnal_query_result = mp_database->query(sqlQuery.c_str());
if (additionnal_query_result.empty())
{
onError(); //database is not well populated
@@ -733,7 +733,7 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa
strStream << m_availableCategoryTable[index].id;
sqlQuery += strStream.str();
sqlQuery += ");";
- additionnal_query_result = mp_database->queryNotUTF(sqlQuery.c_str());
+ additionnal_query_result = mp_database->query(sqlQuery.c_str());
if (additionnal_query_result.empty())
{
onError(); //database is not well populated
@@ -764,7 +764,7 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa
strStream << m_availableCategoryTable[index].id;
sqlQuery += strStream.str();
sqlQuery += ";";
- query_result = mp_database->queryNotUTF(sqlQuery.c_str());
+ query_result = mp_database->query(sqlQuery.c_str());
if (query_result.empty())
{
onError(); //database is not well populated
@@ -791,7 +791,7 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa
strStream << m_availableCategoryTable[index].id;
sqlQuery += strStream.str();
sqlQuery += ";";
- query_result = mp_database->queryNotUTF(sqlQuery.c_str());
+ query_result = mp_database->query(sqlQuery.c_str());
if (query_result.empty())
{
//no child
@@ -808,7 +808,7 @@ poiSearchServer::poiSearchServer(DBus::Connection &connection, const char* poiDa
}
//retrieve the available area into the database
- query_result = mp_database->queryNotUTF(SQL_REQUEST_GET_AVAILABLE_AREA);
+ query_result = mp_database->query(SQL_REQUEST_GET_AVAILABLE_AREA);
if (query_result.empty())
{
onError(); //database is not well populated
@@ -1723,7 +1723,7 @@ uint16_t poiSearchServer::searchPOIRequest(uint16_t categoryIndex, std::string s
sqlQuery += ")) AND (name LIKE '%";
sqlQuery += search_string;
sqlQuery += "%');";
- sqlQueryResult = mp_database->queryNotUTF(sqlQuery.c_str());
+ sqlQueryResult = mp_database->query(sqlQuery.c_str());
//populate the table of poi
poi.categoryIndex = categoryIndex;