This line of code
if (sqlite3_open(([databasePath UTF8String], &database) == SQLITE_OK)
generates an error saying that there are too few arguments to sqlite3_open. How many arguments are required? How can this be fixed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ve got your brackets in not quite the right place – so you’re calling sqlite3_open( ) with just one argument, the result of the ‘is-equal’ test.
This is probably closer:
See also the docs for sqlite3_open( ) – there are three alternative signatures, accepting 2 or 4 args: