Framework update.

This commit is contained in:
stephb9959
2022-05-19 16:10:22 -07:00
parent bb19c0e70b
commit cfb0e6e219

View File

@@ -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_;