diff options
author | rowanbeentje <rowan@beent.je> | 2013-08-14 11:53:42 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-08-14 11:53:42 +0000 |
commit | e852b017bef440b63c4cbaf55675afec2d761073 (patch) | |
tree | 15daf825c3caa5d3d9f2c121a5f26e88e3513a13 /Frameworks/SPMySQLFramework | |
parent | 173da01f2446d86a4e3a9731ab0cf2ee474c2357 (diff) | |
download | sequelpro-e852b017bef440b63c4cbaf55675afec2d761073.tar.gz sequelpro-e852b017bef440b63c4cbaf55675afec2d761073.tar.bz2 sequelpro-e852b017bef440b63c4cbaf55675afec2d761073.zip |
- Add some overrides to SPMySQLEmptyResult to fix errors when running queries which don't produce a result set following the data store changes
Diffstat (limited to 'Frameworks/SPMySQLFramework')
-rw-r--r-- | Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h | 8 | ||||
-rw-r--r-- | Frameworks/SPMySQLFramework/SPMySQLEmptyResult.m | 15 |
2 files changed, 22 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h b/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h index 153d5d68..281d5b7a 100644 --- a/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h +++ b/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h @@ -30,6 +30,12 @@ // // More info at <http://code.google.com/p/sequel-pro/> -@interface SPMySQLEmptyResult : SPMySQLResult +@interface SPMySQLEmptyResult : SPMySQLResult { + + id delegate; + +} + +@property (readwrite, assign) id delegate; @end diff --git a/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.m b/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.m index b8172c04..93a04eff 100644 --- a/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.m +++ b/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.m @@ -34,6 +34,8 @@ @implementation SPMySQLEmptyResult +@synthesize delegate; + #pragma mark - #pragma mark Setup and teardown @@ -72,6 +74,11 @@ { } +- (BOOL)dataDownloaded +{ + return YES; +} + - (id)getRow { return nil; @@ -102,10 +109,18 @@ return nil; } +- (void)startDownload +{ +} + - (void)cancelResultLoad { } +- (void)removeAllRows +{ +} + - (id)_stringWithBytes:(const void *)bytes length:(NSUInteger)length { return nil; |