Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change example to call executeQueryWithParameters:, since a variable …

…argument list is used.
  • Loading branch information...
commit 532fa3de0a659cc8f5abaae4eef5e2645da962e4 1 parent 7ffecac
Mike Daines mdaines authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.markdown
2  README.markdown
View
@@ -18,7 +18,7 @@ Check out each header file for a complete listing of each method.
# Example
EGODatabase* database = [EGODatabase databaseWithPath:[NSHomeDirectory() stringByAppendingPathComponent:@"Documents/database.db"]];
- EGODatabaseResult* result = [database executeQuery:@"SELECT * FROM `posts` WHERE `post_user_id` = ?", [NSNumber numberWithInt:10]];
+ EGODatabaseResult* result = [database executeQueryWithParameters:@"SELECT * FROM `posts` WHERE `post_user_id` = ?", [NSNumber numberWithInt:10]];
for(EGODatabaseRow* row in result) {
NSLog(@"Subject: %@", [row stringForColumn:@"post_subject"]);
NSLog(@"Date: %@", [row dateForColumn:@"post_date"]);
Please sign in to comment.
Something went wrong with that request. Please try again.