diff options
author | rowanbeentje <rowan@beent.je> | 2010-12-13 02:00:25 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-12-13 02:00:25 +0000 |
commit | d607a28b78cd0256eff3cb71a2d33646a5b6d131 (patch) | |
tree | 2718681e3364f195272b3c69283f465a3b12566b /Source/SPTableContent.h | |
parent | b2015bc3974c04557492bb4a698776824ab6689d (diff) | |
download | sequelpro-d607a28b78cd0256eff3cb71a2d33646a5b6d131.tar.gz sequelpro-d607a28b78cd0256eff3cb71a2d33646a5b6d131.tar.bz2 sequelpro-d607a28b78cd0256eff3cb71a2d33646a5b6d131.zip |
- When saving rows in the table content view, only include those fields which have altered values in the UPDATE query, improving speed and reducing the chance of issues when copying queries or altering rapidly changing tables. This addresses Issue #527; thanks to Tobias Mollstam for contributing a patch which prompted this update.
- Rename SPTableContent's "addRowToDB" to "saveRowToTable" for clarity, and clean up the code for speed and clarity
- Correctly save numeric fields as NULL if the value is blanked
Diffstat (limited to 'Source/SPTableContent.h')
-rw-r--r-- | Source/SPTableContent.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableContent.h b/Source/SPTableContent.h index 1dc4caf9..e3fd8a53 100644 --- a/Source/SPTableContent.h +++ b/Source/SPTableContent.h @@ -197,7 +197,7 @@ - (void)clickLinkArrowTask:(SPTextAndLinkCell *)theArrowCell; - (IBAction)setCompareTypes:(id)sender; - (void)processResultIntoDataStorage:(MCPStreamingResult *)theResult approximateRowCount:(NSUInteger)targetRowCount; -- (BOOL)addRowToDB; +- (BOOL)saveRowToTable; - (NSString *)argumentForRow:(NSInteger)row; - (NSString *)argumentForRow:(NSInteger)row excludingLimits:(BOOL)excludeLimits; - (NSString *)argumentForRow:(NSUInteger)rowIndex ofTable:(NSString *)tableForColumn andDatabase:(NSString *)database includeBlobs:(BOOL)includeBlobs; |