NSString *titl = [database executeNonQuery:@"SELECT * FROM numberquestion"];
gives warning:
initialization makes pointer from integer without a cast
What is wrong?
Table “numberquestion” contains only one string “twenty” of type TEXT
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.
Your
databaseobject seems to return anintonexecuteNonQuery:@"SELECT * FROM numberquestion".If its some sort of generic database accessor I would expect an array or a similar structure as result for a “SELECT * …”.
But as the method reads “executeNonQuery:” it maybe only returns a state (encoded in an integer), because you don’t expect a result (exectuteNonQuery).