Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 10, 2008, 08:07 PM   #1
okskpark
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
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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
To return or not return... itommyboy iPhone 16 Oct 3, 2010 08:02 PM
To return or not to return? EggrollShop MacBook Pro 8 Jun 23, 2009 12:14 PM
To return or not to return - What would you guys do? aminewyork Mac Pro 14 Oct 3, 2008 06:05 AM
To return or not to return.. iitswhitney iPhone 1 May 25, 2008 12:49 AM
LED yellow band: to return or not to return? That is the question. Sonic MacBook Pro 26 Jul 15, 2007 10:55 PM


All times are GMT -5. The time now is 01:44 PM.

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

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