SQLite Notifier has no table information #1687 (#2540)

This commit is contained in:
Aleksandar Fabijanic
2018-11-13 07:23:37 -06:00
committed by GitHub
parent 9f53d07d4c
commit 8d95644bad
3 changed files with 36 additions and 16 deletions

View File

@@ -129,6 +129,12 @@ public:
/// Equality operator. Compares value, row and database handles and
/// returns true iff all are equal.
const std::string& getTable() const;
/// Returns the table name.
void setTable(const std::string& table);
/// Sets the row number.
Poco::Int64 getRow() const;
/// Returns the row number.
@@ -151,8 +157,9 @@ private:
Notifier& operator=(const Notifier&);
const Session& _session;
Poco::Dynamic::Var _value;
std::string _table;
Poco::Int64 _row;
Poco::Dynamic::Var _value;
EnabledEventType _enabledEvents;
Poco::Mutex _mutex;
};
@@ -170,6 +177,19 @@ inline bool Notifier::operator == (const Notifier& other) const
}
inline const std::string& Notifier::getTable() const
{
return _table;
}
inline void Notifier::setTable(const std::string& table)
/// Sets the row number.
{
_table = table;
}
inline Poco::Int64 Notifier::getRow() const
{
return _row;
@@ -177,7 +197,6 @@ inline Poco::Int64 Notifier::getRow() const
inline void Notifier::setRow(Poco::Int64 row)
/// Sets the row number.
{
_row = row;
}