again linux build error

This commit is contained in:
Dario 2020-01-27 16:56:42 +01:00
parent 2bffeb3f00
commit 68552262aa

View File

@ -96,7 +96,8 @@ namespace model {
bool ModelBase::isExistInDB(const std::string& fieldName, const T& fieldValue)
{
auto cm = ConnectionManager::getInstance();
Poco::Data::Statement select(cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER));
auto session = cm->getConnection(CONNECTION_MYSQL_LOGIN_SERVER);
Poco::Data::Statement select(session);
int id;
select << "SELECT " << "id "
<< " FROM " << getTableName()