incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronnie Schaniel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1546) index.html DB Error: Could not prepare statement (1 no such table: table_name) Code=5 on ios6
Date Wed, 26 Sep 2012 18:11:07 GMT

    [ https://issues.apache.org/jira/browse/CB-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464006#comment-13464006
] 

Ronnie Schaniel commented on CB-1546:
-------------------------------------

Well...all the data from the mysql database is send in json. Then I think the App uses openDatabase
to store the data, but that is not the point the error appears. In the index.html file a function
onDeviceReady() calls another function setupTables(dbShell) after that the function loadAddresses
should be executed. 
According to the log setupTables(dbShell) is the last executed function at the iOS6 simulator.
The iOS5.1 simulator shows the invocation of the loadAddresses function. I attached the corresponding
function as a screenshot. 
"Setup tables for locale database" is the last log entry.
                
> index.html DB Error: Could not prepare statement (1 no such table: table_name) Code=5
on ios6
> ---------------------------------------------------------------------------------------------
>
>                 Key: CB-1546
>                 URL: https://issues.apache.org/jira/browse/CB-1546
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Ronnie Schaniel
>            Assignee: Shazron Abdullah
>
> My app gets the data from a mysql database. After updating the iphone to ios6 I'm facing
a database error. "DB Error: Could not prepare statement (1 no such table: table_name) Code=5".
I upgraded the cordova from 1.7 to 2.1 but I still have this problem. The error appears in
the ios6 simulator on xcode too. 
> There is surely no problem with the database itself because the webservice and the android
app receive the correct data without an error. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message