[mono-android] Exception isn't being caught and is killing my app
Jonathan Pryor
jonp at xamarin.com
Wed Oct 3 21:30:06 UTC 2012
On Oct 3, 2012, at 4:51 PM, "Jeremy A. Kolb - ARA/NED" <jkolb at ara.com> wrote:
> Unfortunately I have no control over this throw.
You do have control: SQLiteDatabase is throwing because the SQL you're sending it is invalid. Don't give it invalid SQL. :-)
> 10-03 12:01:47.487 I/MonoDroid(18173): android.database.sqlite.SQLiteException: near "123": syntax error: , while compiling: UPDATE Personnel SET CurrentlyActive=?,Skills=?,Role=?,FirstName=?,LastName=?,123=? WHERE _id=5
Why would you have this?
UPDATE table SET 123=?
If you actually have a column named "123", you'll need to quote it.
- Jon
More information about the Monodroid
mailing list