From f4967d21057a1363cacc9607b5ace0149a45ca11 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 11 Mar 2013 23:03:28 +0000 Subject: - Add a new SPMySQLEmptyResult class to SPMySQLFrameowkr, returning it instead of nil if a query produces no result set. This allows per-result-set properties to be preserved, fixing issues where information like query execution time was lost - addressing Issue #1577 --- Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h (limited to 'Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h') diff --git a/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h b/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h new file mode 100644 index 00000000..153d5d68 --- /dev/null +++ b/Frameworks/SPMySQLFramework/SPMySQLEmptyResult.h @@ -0,0 +1,35 @@ +// +// $Id$ +// +// SPMySQLEmptyResult.h +// SPMySQLFramework +// +// Created by Rowan Beentje (rowan.beent.je) on March 11, 2013 +// Copyright (c) 2013 Rowan Beentje. All rights reserved. +// +// Permission is hereby granted, free of charge, to any person +// obtaining a copy of this software and associated documentation +// files (the "Software"), to deal in the Software without +// restriction, including without limitation the rights to use, +// copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the +// Software is furnished to do so, subject to the following +// conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +// More info at + +@interface SPMySQLEmptyResult : SPMySQLResult + +@end -- cgit v1.2.3