Hi, looks like this could be a bug
http://code.google.com/p/android/issues/detail?id=4467&q=SelectionArgs&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
, but i thought i
would see if i was misinterpreting the resource.

My code:

managedQuery(Scans.CONTENT_URI, new String[] {Scans.START_TIME},
Scans._ID + "=?",
new String[] {"1"}, Scans.DEFAULT_SORT_ORDER);

And here is the result

android.database.sqlite.SQLiteException: near ")": syntax error: ,
while compiling:
SELECT start FROM scans WHERE () AND (_id=?) ORDER BY _id DESC

Looks to me like the the ?'s are not getting substituted by the
selectionArgs as they are supposed to be. Please let me know if you
have used selectionArgs effectively please let me know.

Ne0

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to