Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

napierzaza

macrumors newbie
Original poster
Oct 4, 2009
9
0
Okay,

I'm successful running a sqlite query. I use sqlite3_exec to call my function called database call. It actually works when the query actually sends a result to the callback.

//Sqlite call
sqlite3_exec(database,[query UTF8String],databaseCall,string, NULL);

//this is my callback header
static int databaseCall(void *context, int count, char **values, char **columns)

When it works, I can have it check my context string with the values.

However, if there is no result, I can't check anything. I can't check is count == 0 or values=="" or whatever. For some reason it just does not hook onto anything. I've pretty much tried everything, checking count==NULL, or count==0 or values[0]=="" or values[0]==NULL.

Please help!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.