fixup for caching queries

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@37700 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2014-02-21 09:56:09 +00:00
parent 5698d1153e
commit 481443efb5
3 changed files with 28 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2014-02-21 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.h:
* SQLClient.m:
Add mutable copy implementation so that set and dictionary builders
can be used by caching queries without raising an exception ... the
mutable copy of the helper's content is what gets cached.
2014-02-15 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.h:

View file

@ -1572,6 +1572,11 @@ SQLCLIENT_PRIVATE
*/
- (id) initWithCapacity: (NSUInteger)capacity;
/** Makes a mutable copy of the content dictionary (called when a caching
* query uses this helper to produce the cached collection).
*/
- (id) mutableCopyWithZone: (NSZone*)aZone;
/** This is the main workhorse of the class ... it is called once for
* every record read from the database, and is responsible for adding
* that record to the content dictionary. The default implementation,
@ -1634,6 +1639,11 @@ SQLCLIENT_PRIVATE
*/
- (id) initWithCapacity: (NSUInteger)capacity;
/** Makes a mutable copy of the content dictionary (called when a caching
* query uses this helper to produce the cached collection).
*/
- (id) mutableCopyWithZone: (NSZone*)aZone;
/** This is the main workhorse of the class ... it is called once for
* every record read from the database, and is responsible for adding
* that record to the content set. The default implementation,

View file

@ -3541,6 +3541,11 @@ validName(NSString *name)
return self;
}
- (id) mutableCopyWithZone: (NSZone*)aZone
{
return [content mutableCopyWithZone: aZone];
}
- (id) newWithValues: (id*)values
keys: (NSString**)keys
count: (unsigned int)count
@ -3590,6 +3595,11 @@ validName(NSString *name)
return self;
}
- (id) mutableCopyWithZone: (NSZone*)aZone
{
return [content mutableCopyWithZone: aZone];
}
- (id) newWithValues: (id*)values
keys: (NSString**)keys
count: (unsigned int)count