diff options
author | rowanbeentje <rowan@beent.je> | 2009-11-16 23:35:20 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-11-16 23:35:20 +0000 |
commit | 02097a03b20a58957149e68ad484fd2769831481 (patch) | |
tree | 3ffb01ce1aaa4d9b8950ea8f83c87a49baed0b54 /Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m | |
parent | cd0ac7f9878e2649846e46f559a7ba5ee3047e72 (diff) | |
download | sequelpro-02097a03b20a58957149e68ad484fd2769831481.tar.gz sequelpro-02097a03b20a58957149e68ad484fd2769831481.tar.bz2 sequelpro-02097a03b20a58957149e68ad484fd2769831481.zip |
- Correctly report errors triggered *during* result download for streaming results. This improves partial content displays (using the new code as of r1530) and also improves custom query error reporting.
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m index 99150527..4fde472d 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m @@ -170,6 +170,11 @@ // once all memory has been freed if (processedRowCount == downloadedRowCount) { while (!dataFreed) usleep(1000); + + // Update the connection's error statuses in case of error during content download + [parentConnection updateErrorStatuses]; + + // Unlock the connection and return [parentConnection unlockConnection]; connectionUnlocked = YES; return nil; |