We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfde3bf commit 4980414Copy full SHA for 4980414
CCSQLite/CCKeyValue.m
@@ -81,7 +81,7 @@ - (void) setObject: (id) object key : (NSString *) key inCollection: (NSString *
81
isOK = [db executeUpdate:@"insert into 'CCSQLite.Database2' (collection, key, data, metadata) values (?, ?, ?, ?);", c, key, data, metadata];
82
83
if (!isOK) {
84
- isOK = [db executeUpdate:@"update 'CCSQLite.Database2' set collection = ? , key = ? , data = ? , metadata = ? ;", c, key, data, metadata];
+ isOK = [db executeUpdate:@"update 'CCSQLite.Database2' set data = ? , metadata = ? where collection = ? and key = ?;", data, metadata, c, key];
85
}
86
87
0 commit comments