Error querying SQLITE on the handset SYNTAX_ERR

I am trying to create a db using SQLITE to break the phone [cordova 1.7.0] with IOS5. When I increase the amount of data, the request fails and throws an error. I followed the steps

This is my journal:

[INFO] Error processing SQL: 5 //SYNTAX_ERR 

Do you know what the problem is? thanks

+4
source share
1 answer

I knew what I was doing wrong:

 tx.executeSql('INSERT INTO SESSION (id ***unique***, dayId, subject, Seq) VALUES (1, 4, "English", 1)'); 

I shouldn't have written the type in the insert statement too ... so when I deleted it, it worked fine.

+3
source

Source: https://habr.com/ru/post/1411821/


All Articles