1, the first in the sandbox I created a database under person.db. In the application is running without any problems
2, I put person.db, uploaded to my server with no problems
3, download I just uploaded person.db overwrite the original person.db this time when the program is running problems
---- Run, my application does not display any data in the database, and the console prints "Create table failed", I printed a bit failures result
int result = sqlite3_exec (db, [createSql UTF8String], NULL, NULL, & error);
NSLog (@ "% d", result);
restlt result of 21 - that is, # define SQLITE_MISUSE 21 / * Library used incorrectly * /
So once again help a great God, which is how it is, how to solve 21.
No comments:
Post a Comment