What is it exactly you are trying to do with your statement?

I think you can only add columns during an upgrade (not change
existing ones).

On Sep 10, 2:28 pm, Marco Nelissen <marc...@android.com> wrote:
> On Thu, Sep 10, 2009 at 8:44 AM,
>
> c.a.due...@googlemail.com<c.a.due...@googlemail.com> wrote:
>
> > Hi Droids!
>
> > I get a SQLiteException if I try to issue an alter statement in the
> > onUpgrade method of SQLiteOpenHelper subclass:
>
> > Can't upgrade read-only database from version X to Y: /path/to/db
>
> > That makes no sense at all! Where did I go wrong?
>
> When a database fails to open in read/write mode, the system tries to
> open it in read-only mode. That is probably why you're seeing the
> message about the database being read-only.
> So you need to figure out why your database failed to open initially.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to