failed to read row 0,column -1

后端 未结 4 1740
天命终不由人
天命终不由人 2021-02-18 15:53

I am trying to copy a database that I made with SQLite manager, in which I did:

CREATE TABLE \"android_metadata\" (\"locale\" TEXT DEFAULT \'en_US\')
         


        
4条回答
  •  逝去的感伤
    2021-02-18 16:13

    The mistake was using umlauts ü,ö,ä in the database column names.

    Although you can get the content by switching with the method cursor.movetonext() so often until you moved to the right number, it was very annoying and requested a bunch of code.

    I guess this should solve the problems for most of you. I guess anything but ASCII is wrong -- spaces, dots, minuses etc., cannot be used either.

    You may successfully create a database and you may can see with external sqlite tools but android will always nag.

提交回复
热议问题