hugoloza / gwt-mobile-webkit

Automatically exported from code.google.com/p/gwt-mobile-webkit
2 stars 0 forks source link

'no such table' error, but table exists (DataService) #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. I copied your example with DataService code in my project but altered some 
data.
2. Then putted "CREATE IF NOT EXISTS" command just like in your example.
3. After that I created few methods with SELECT command and one for inserting 
data in table.
4. For getting data from table I used GenericRow class.
5. I use Windows.alert() for messages in success and failure callback functions.
6. And finally refreshed page in browser.

Expected behavior is to get alert messages with ID of inserted row in database 
or data retrieved with SELECT command.
Instead alert showed me DataServiceException that table which I created doesn't 
exist.

I use Chrome 5.0.375.70 on Windows XP. I tried FF 3.6.3 and Safari 5 but I was 
alerted that Web SQL API is not supported.

The strange thing is that when I call "SELECT count(*)" for that table and it 
always returns me count 1.

Later I tried exact copy of your example code, but I got the same error message 
(no such table 'clickcount').

I need help with this as soon as possible.

Thank
JD

Original issue reported on code.google.com by jesus.cr...@gmail.com on 15 Jun 2010 at 4:49

GoogleCodeExporter commented 9 years ago
Hi Jesus,

Could you post your code? In the library I created a simple example, does that 
example work for you?

Original comment by bguijt on 22 Jun 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Yes I tried with your sample code.

Sorry I didn't inform you.
After I changed the database name it worked with your and with my code. I guess 
Chrome stucked somewhere. :/

Thanks anyways and sorry for bothering you.
Keep up the good work. :)
JD

Original comment by jesus.cr...@gmail.com on 22 Jun 2010 at 2:06

GoogleCodeExporter commented 9 years ago
OK, you're welcome :-)

Original comment by bguijt on 22 Jun 2010 at 2:27