diff --git a/src/framework/orm.h b/src/framework/orm.h index 9b8d5fc..48c95f7 100644 --- a/src/framework/orm.h +++ b/src/framework/orm.h @@ -81,14 +81,14 @@ namespace ORM { typedef std::vector FieldVec; struct IndexEntry { - std::string FieldName; - Indextype Type; + std::string FieldName; + Indextype Type; }; typedef std::vector IndexEntryVec; struct Index { std::string Name; - IndexEntryVec Entries; + IndexEntryVec Entries; }; typedef std::vector IndexVec; @@ -419,7 +419,7 @@ namespace ORM { Poco::Data::Statement Select(Session); RecordTuple RT; - std::string St = "select " + SelectFields_ + " from " + TableName_ + " where " + FieldName + "=?" ; + std::string St = "select " + SelectFields_ + " from " + TableName_ + " where " + FieldName + "=?" + " limit 1"; auto tValue{Value};