Something like this:

String[] FooParams = new String[1];
FooParams[0] = "123";
Curosr csr =
    db.rawQuery( "SELECT * FROM FooTable WHERE FooField = '?'", FooParams );

Causes this:

android.database.sqlite.SQLiteException: bind or column index out of 
range: handle 0x30f6b0


Everyone seems to use the convenience routines or concatenates their 
own strings together and passes "null" for the params. (Even the 
famous Busy Coder 2.0.2 pp 244). I can do that, of course, just 
wondering what stupid thing I am doing wrong or if it fails for 
everyone and that is why the idiom is not seen in the wild more...

-- Ward


--~--~---------~--~----~------------~-------~--~----~
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