mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-20 18:32:06 +00:00
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:
parent
5698d1153e
commit
481443efb5
3 changed files with 28 additions and 0 deletions
|
@ -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:
|
||||
|
|
10
SQLClient.h
10
SQLClient.h
|
@ -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,
|
||||
|
|
10
SQLClient.m
10
SQLClient.m
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue