Permalink
Browse files

Change example to call executeQueryWithParameters:, since a variable …

…argument list is used.
  • Loading branch information...
1 parent 7ffecac commit 532fa3de0a659cc8f5abaae4eef5e2645da962e4 @mdaines mdaines committed Jul 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"]);

0 comments on commit 532fa3d

Please sign in to comment.