[
https://issues.apache.org/jira/browse/CB-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Grieve resolved CB-1546.
-------------------------------
Resolution: Invalid
Assignee: Andrew Grieve (was: Shazron Abdullah)
Okay, I was able to use your code to repro it working on iOS 5 but not 6.
However, it looks like the error is in your code and iOS5 was just more
forgiving.
You should change your db.transaction() call from:
db.transaction(function, [], win, fail)
to:
db.transaction(function, fail, win)
> 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: Andrew Grieve
> Attachments: Bildschirmfoto 2012-09-26 um 20.10.42.png
>
>
> 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