Add SQLite Notifier table name getter (#1691)

* Add table name in SQLite Notifier

* Converted spaces to tabs to conform to Poco coding style

* One more spaces to tab change

* Added table compare to Notifier equality operator

* Returning const ref instead of string copy in Notifier getTable
This commit is contained in:
petko
2017-04-17 20:46:57 +03:00
committed by Aleksandar Fabijanic
parent 61f0bb2c2b
commit 3bacb6696f
3 changed files with 16 additions and 0 deletions

View File

@@ -2886,6 +2886,8 @@ void SQLiteTest::testNotifier()
assert (_updateCounter == 3);
assert (notifier.getRow() == 3);
assert (notifier.getTable() == "Person");
notifier.setRow(0);
// SQLite optimizes DELETE so here we must have
// the WHERE clause to trigger per-row notifications