Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7eb9662 authored by Ken Shirriff's avatar Ken Shirriff
Browse files

Fix contact creation.

This was broken by my change 2934.
bug=1903820
parent fa5c7e1d
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -61,10 +61,10 @@ public abstract class AbstractTableMerger
            _SYNC_ID +"=? and " + _SYNC_ACCOUNT + "=?";
            _SYNC_ID +"=? and " + _SYNC_ACCOUNT + "=?";
    private static final String SELECT_BY_ID = BaseColumns._ID +"=?";
    private static final String SELECT_BY_ID = BaseColumns._ID +"=?";


    // The last clause rejects events with a null _SYNC_VERSION if they've already been synced
    private static final String SELECT_UNSYNCED =
    private static final String SELECT_UNSYNCED = ""
            "(" + _SYNC_ACCOUNT + " IS NULL OR " + _SYNC_ACCOUNT + "=?) AND "
            + _SYNC_DIRTY + " > 0 and (" + _SYNC_ACCOUNT + "=? or " + _SYNC_ACCOUNT + " is null) "
            + "(" + _SYNC_ID + " IS NULL OR (" + _SYNC_DIRTY + " > 0 AND "
            + "and (" + _SYNC_VERSION + " is not null or " + _SYNC_ACCOUNT + " is null)";
                                              + _SYNC_VERSION + " IS NOT NULL))";


    public AbstractTableMerger(SQLiteDatabase database,
    public AbstractTableMerger(SQLiteDatabase database,
            String table, Uri tableURL, String deletedTable,
            String table, Uri tableURL, String deletedTable,