internal long GetLastSyncCountHelper(string query, params string[] parameters)
{
long lastSyncCount = 0;
Sqlite3Statement stmt = null;
try
{
stmt = ExecuteQuery(query, parameters);
while (Sqlite3.sqlite3_step(stmt) == Sqlite3.SQLITE_ROW)
{
lastSyncCount = (Int64)GetColumnValue(stmt, typeof(Int64), DatasetColumns.LAST_SYNC_COUNT);
}
}
finally
{
if (stmt != null)
Sqlite3.sqlite3_finalize(stmt);
}
return lastSyncCount;
}