am 0e6691be: Merge "Doc update: typos in code snippets." into jb-mr1.1-docs
* commit '0e6691be2abbc11af2d50f1dfdebf3f11285993d': Doc update: typos in code snippets.
This commit is contained in:
@@ -284,7 +284,7 @@ immune to SQL injection.</p>
|
|||||||
// Define 'where' part of query.
|
// Define 'where' part of query.
|
||||||
String selection = FeedReaderContract.FeedEntry.COLUMN_NAME_ENTRY_ID + " LIKE ?";
|
String selection = FeedReaderContract.FeedEntry.COLUMN_NAME_ENTRY_ID + " LIKE ?";
|
||||||
// Specify arguments in placeholder order.
|
// Specify arguments in placeholder order.
|
||||||
String[] selelectionArgs = { String.valueOf(rowId) };
|
String[] selectionArgs = { String.valueOf(rowId) };
|
||||||
// Issue SQL statement.
|
// Issue SQL statement.
|
||||||
db.delete(table_name, selection, selectionArgs);
|
db.delete(table_name, selection, selectionArgs);
|
||||||
</pre>
|
</pre>
|
||||||
@@ -309,7 +309,7 @@ values.put(FeedReaderContract.FeedEntry.COLUMN_NAME_TITLE, title);
|
|||||||
|
|
||||||
// Which row to update, based on the ID
|
// Which row to update, based on the ID
|
||||||
String selection = FeedReaderContract.FeedEntry.COLUMN_NAME_ENTRY_ID + " LIKE ?";
|
String selection = FeedReaderContract.FeedEntry.COLUMN_NAME_ENTRY_ID + " LIKE ?";
|
||||||
String[] selelectionArgs = { String.valueOf(rowId) };
|
String[] selectionArgs = { String.valueOf(rowId) };
|
||||||
|
|
||||||
int count = db.update(
|
int count = db.update(
|
||||||
FeedReaderDbHelper.FeedEntry.TABLE_NAME,
|
FeedReaderDbHelper.FeedEntry.TABLE_NAME,
|
||||||
|
|||||||
Reference in New Issue
Block a user