mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralfms.git
synced 2025-10-30 02:12:22 +00:00
Framework update.
This commit is contained in:
@@ -688,7 +688,7 @@ namespace ORM {
|
|||||||
}
|
}
|
||||||
if(!ItemList.empty())
|
if(!ItemList.empty())
|
||||||
ItemList += " , ";
|
ItemList += " , ";
|
||||||
auto hint = FieldNames_.find(T[0]);
|
auto hint = FieldNames_.find(Poco::toLower(T[0]));
|
||||||
if(hint==FieldNames_.end()) {
|
if(hint==FieldNames_.end()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -898,12 +898,17 @@ namespace ORM {
|
|||||||
|
|
||||||
Poco::Logger & Logger() { return Logger_; }
|
Poco::Logger & Logger() { return Logger_; }
|
||||||
|
|
||||||
bool DeleteRecordsFromCache(const char *FieldName, const std::string &Value ) {
|
inline bool DeleteRecordsFromCache(const char *FieldName, const std::string &Value ) {
|
||||||
if(Cache_)
|
if(Cache_)
|
||||||
Cache_->Delete(FieldName, Value);
|
Cache_->Delete(FieldName, Value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void GetFieldNames( OpenWifi::Types::StringVec & F) {
|
||||||
|
for(const auto &[field,_]:FieldNames_)
|
||||||
|
F.push_back(field);
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string TableName_;
|
std::string TableName_;
|
||||||
OpenWifi::DBType Type_;
|
OpenWifi::DBType Type_;
|
||||||
|
|||||||
Reference in New Issue
Block a user