Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Nov 10, 2008, 08:07 PM   #1
macrumors newbie
Join Date: Jul 2008
Location: Seoul, South Korea
Send a message via MSN to okskpark
sqlite3_step continually returns SQLITE_DONE, not SQLITE_ROW

I put my sql file to Resource folder.
And I checked there is few data through the terminal.
But sqlite3_step never give SQLITE_ROW.
Now I don't know what I have to do.

help me, plz.

here is my code
	if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) {
#pragma mark [[money part]]
		const char *moneySqlStatement = "SELECT * FROM money";
		sqlite3_stmt *compiledStatement;
		if(sqlite3_prepare_v2(database, moneySqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
			while(  sqlite3_step(compiledStatement) == SQLITE_ROW) {
				NSString *mTitle = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 1)];
okskpark is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Apple TV continually shutting down - any suggestions SnowLeopard OSX Apple TV and Home Theater 4 May 3, 2014 03:52 AM
New iMac continually rebooting / kernel panic digitalhen iMac 4 Dec 11, 2013 10:26 PM
Can't stop AMBER Alert from continually going off! Kevin L. iPhone 47 Aug 13, 2013 06:08 AM
iPad 1 continually reboots, but only using AC adapter millar876 iPad Tips, Help and Troubleshooting 3 Feb 7, 2013 12:48 PM
iCloud does NOT just continually save over itself? james92se iPhone 7 Sep 29, 2012 12:23 PM

Forum Jump

All times are GMT -5. The time now is 01:30 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC