Hi,
I'm developing an app that has to run on PhoneGap using both Android 2.x and iPhone 4.x I'm having a problem with iPhone in the first query of a table. I've been looking at the code and I see that when you create an object, it does a select to see if the table exists and if it does not it creates it. However, if you create a new Lawnchair object and just after that you try to query an object in that table for the first time, the query is actually done before the table check transaction fails, hence the table is created after the query is done, raising an error of "no such table".
I guess I'll be able to work around this by using a timer, and I guess this will be hard to solve given the asynchronous nature of the WebKit SQL, but it's worth looking it.
Hi, I'm developing an app that has to run on PhoneGap using both Android 2.x and iPhone 4.x I'm having a problem with iPhone in the first query of a table. I've been looking at the code and I see that when you create an object, it does a select to see if the table exists and if it does not it creates it. However, if you create a new Lawnchair object and just after that you try to query an object in that table for the first time, the query is actually done before the table check transaction fails, hence the table is created after the query is done, raising an error of "no such table". I guess I'll be able to work around this by using a timer, and I guess this will be hard to solve given the asynchronous nature of the WebKit SQL, but it's worth looking it.
Cheers!