Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit dac2f97

Browse files
committed
Fix method call
1 parent 368690b commit dac2f97

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/src/main/java/novoda/lib/sqliteprovider/provider/action/InsertHelper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.database.SQLException;
77
import android.net.Uri;
88

9+
import java.util.Arrays;
910
import java.util.List;
1011

1112
import novoda.lib.sqliteprovider.sqlite.ExtendedSQLiteOpenHelper;
@@ -66,7 +67,7 @@ protected long tryUpdateWithConstrain(String table, String constrain, ContentVal
6667
Log.Provider.v("Constrain " + constrain + " yield " + update);
6768
}
6869
if (update > 0) {
69-
rowId = getRowIdForUpdate(table, constrain, values);
70+
rowId = getRowIdForUpdate(table, new Constraint(Arrays.asList(constrain)), values);
7071
}
7172
return rowId;
7273
}
@@ -114,7 +115,7 @@ private String[] getWhereArguments(Constraint constraint, ContentValues values)
114115
* Will get the Row id from the latest update.
115116
*
116117
* @param table
117-
* @param constrain
118+
* @param constraint
118119
* @param values
119120
* @return
120121
*/

0 commit comments

Comments
 (0)