Browse Source

Update README

Minor typos
Robert M. Ryan 10 years ago
parent
commit
fc2136efe3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.markdown

+ 2 - 2
README.markdown

@@ -199,13 +199,13 @@ do {
 Alternatively, you may use named parameters syntax:
 
 ```sql
-INSERT INTO myTable (identifier, name, date, comment) VALUES (:identifier, :name, :date, :comment)
+INSERT INTO authors (identifier, name, date, comment) VALUES (:identifier, :name, :date, :comment)
 ```
 
 The parameters *must* start with a colon. SQLite itself supports other characters, but internally the dictionary keys are prefixed with a colon, do **not** include the colon in your dictionary keys.
 
 ```objc
-NSDictionary *arguments = @{@"identifier": @(identifier), @"name": name, @"date": date, comment: [NSNull null]};
+NSDictionary *arguments = @{@"identifier": @(identifier), @"name": name, @"date": date, @"comment": comment ?: [NSNull null]};
 BOOL success = [db executeUpdate:@"INSERT INTO authors (identifier, name, date, comment) VALUES (:identifier, :name, :date, :comment)" withParameterDictionary:arguments];
 if (!success) {
     NSLog(@"error = %@", [db lastErrorMessage]);