From f8d12335468a8405c58f254c1044c8714778b437 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 27 Sep 2012 22:50:47 +0000 Subject: Fix filename typo. --- .../PostgresKit.xcodeproj/project.pbxproj | 8 +-- .../PostgresKit/Source/PGPostgresStatement.m | 81 ++++++++++++++++++++++ Frameworks/PostgresKit/Source/PGostgresStatement.m | 81 ---------------------- 3 files changed, 85 insertions(+), 85 deletions(-) create mode 100644 Frameworks/PostgresKit/Source/PGPostgresStatement.m delete mode 100644 Frameworks/PostgresKit/Source/PGostgresStatement.m (limited to 'Frameworks') diff --git a/Frameworks/PostgresKit/PostgresKit.xcodeproj/project.pbxproj b/Frameworks/PostgresKit/PostgresKit.xcodeproj/project.pbxproj index ad2a51ee..dfc30b4b 100644 --- a/Frameworks/PostgresKit/PostgresKit.xcodeproj/project.pbxproj +++ b/Frameworks/PostgresKit/PostgresKit.xcodeproj/project.pbxproj @@ -36,7 +36,7 @@ 173D4EA715BAB2A80007F267 /* PGPostgresResult.h in Headers */ = {isa = PBXBuildFile; fileRef = 173D4E9B15BAB2A80007F267 /* PGPostgresResult.h */; settings = {ATTRIBUTES = (Public, ); }; }; 173D4EA815BAB2A80007F267 /* PGPostgresResult.m in Sources */ = {isa = PBXBuildFile; fileRef = 173D4E9C15BAB2A80007F267 /* PGPostgresResult.m */; }; 173D4EA915BAB2A80007F267 /* PGPostgresStatement.h in Headers */ = {isa = PBXBuildFile; fileRef = 173D4E9D15BAB2A80007F267 /* PGPostgresStatement.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 173D4EAA15BAB2A80007F267 /* PGostgresStatement.m in Sources */ = {isa = PBXBuildFile; fileRef = 173D4E9E15BAB2A80007F267 /* PGostgresStatement.m */; }; + 173D4EAA15BAB2A80007F267 /* PGPostgresStatement.m in Sources */ = {isa = PBXBuildFile; fileRef = 173D4E9E15BAB2A80007F267 /* PGPostgresStatement.m */; }; 173D4EAB15BAB2A80007F267 /* PostgresKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 173D4E9F15BAB2A80007F267 /* PostgresKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; 173D4EE215BACA700007F267 /* libpq.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 173D4EE115BACA700007F267 /* libpq.a */; }; 173D4F4515BAD22B0007F267 /* PGPostgresTypeHandlerProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 173D4EA015BAB2A80007F267 /* PGPostgresTypeHandlerProtocol.h */; settings = {ATTRIBUTES = (); }; }; @@ -103,7 +103,7 @@ 173D4E9B15BAB2A80007F267 /* PGPostgresResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGPostgresResult.h; sourceTree = ""; }; 173D4E9C15BAB2A80007F267 /* PGPostgresResult.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGPostgresResult.m; sourceTree = ""; }; 173D4E9D15BAB2A80007F267 /* PGPostgresStatement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGPostgresStatement.h; sourceTree = ""; }; - 173D4E9E15BAB2A80007F267 /* PGostgresStatement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGostgresStatement.m; sourceTree = ""; }; + 173D4E9E15BAB2A80007F267 /* PGPostgresStatement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PGPostgresStatement.m; sourceTree = ""; }; 173D4E9F15BAB2A80007F267 /* PostgresKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PostgresKit.h; sourceTree = ""; }; 173D4EA015BAB2A80007F267 /* PGPostgresTypeHandlerProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGPostgresTypeHandlerProtocol.h; sourceTree = ""; }; 173D4EE115BACA700007F267 /* libpq.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libpq.a; sourceTree = ""; }; @@ -295,7 +295,7 @@ 173D4E9B15BAB2A80007F267 /* PGPostgresResult.h */, 173D4E9C15BAB2A80007F267 /* PGPostgresResult.m */, 173D4E9D15BAB2A80007F267 /* PGPostgresStatement.h */, - 173D4E9E15BAB2A80007F267 /* PGostgresStatement.m */, + 173D4E9E15BAB2A80007F267 /* PGPostgresStatement.m */, 173D4E9915BAB2A80007F267 /* PGPostgresException.h */, 173D4E9A15BAB2A80007F267 /* PGPostgresException.m */, ); @@ -533,7 +533,7 @@ 173D4EA415BAB2A80007F267 /* PGPostgresConnectionUtils.m in Sources */, 173D4EA615BAB2A80007F267 /* PGPostgresException.m in Sources */, 173D4EA815BAB2A80007F267 /* PGPostgresResult.m in Sources */, - 173D4EAA15BAB2A80007F267 /* PGostgresStatement.m in Sources */, + 173D4EAA15BAB2A80007F267 /* PGPostgresStatement.m in Sources */, 173D508F15BBD9BF0007F267 /* PGConstants.m in Sources */, 170465CF15C2960F00DC5BE5 /* PGPostgresTypeHandler.m in Sources */, 177AC5F115C50F6E00A3658D /* PGPostgresConnectionTypeHandling.m in Sources */, diff --git a/Frameworks/PostgresKit/Source/PGPostgresStatement.m b/Frameworks/PostgresKit/Source/PGPostgresStatement.m new file mode 100644 index 00000000..5e0d1959 --- /dev/null +++ b/Frameworks/PostgresKit/Source/PGPostgresStatement.m @@ -0,0 +1,81 @@ +// +// $Id: PGPostgresStatement.m 3793 2012-09-03 10:22:17Z stuart02 $ +// +// PGPostgresStatement.m +// PostgresKit +// +// Copyright (c) 2008-2009 David Thorpe, djt@mutablelogic.com +// +// Forked by the Sequel Pro Team on July 22, 2012. +// +// Licensed under the Apache License, Version 2.0 (the "License"); you may not +// use this file except in compliance with the License. You may obtain a copy of +// the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +// License for the specific language governing permissions and limitations under +// the License. + +#import "PGPostgresStatement.h" + +@implementation PGPostgresStatement + +@synthesize name = _name; +@synthesize statement = _statement; + +#pragma mark - +#pragma mark Initialisation + +- (id)initWithStatement:(NSString *)queryStatement +{ + if ((self = [super init])) { + [self setStatement:queryStatement]; + [self setName:nil]; + } + + return self; +} + +#pragma mark - +#pragma mark Public API + +/** + * Returns a null terminated C string of the statement's name. + * + * @return The statement name. + */ +- (const char *)UTF8Name +{ + return [[self name] UTF8String]; +} + +/** + * Returns a null terminated C string of the statement. + * + * @return The prepared statement. + */ +- (const char *)UTF8Statement +{ + return [[self statement] UTF8String]; +} + +- (NSString *)description +{ + return [self name] ? [NSString stringWithFormat:@"<%@ %@>", [self className], [self name]] : [NSString stringWithFormat:@"<%@>", [self className]]; +} + +#pragma mark - + +- (void)dealloc +{ + if (_name) [_name release], _name = nil; + if (_statement) [_statement release], _statement = nil; + + [super dealloc]; +} + +@end diff --git a/Frameworks/PostgresKit/Source/PGostgresStatement.m b/Frameworks/PostgresKit/Source/PGostgresStatement.m deleted file mode 100644 index 5e0d1959..00000000 --- a/Frameworks/PostgresKit/Source/PGostgresStatement.m +++ /dev/null @@ -1,81 +0,0 @@ -// -// $Id: PGPostgresStatement.m 3793 2012-09-03 10:22:17Z stuart02 $ -// -// PGPostgresStatement.m -// PostgresKit -// -// Copyright (c) 2008-2009 David Thorpe, djt@mutablelogic.com -// -// Forked by the Sequel Pro Team on July 22, 2012. -// -// Licensed under the Apache License, Version 2.0 (the "License"); you may not -// use this file except in compliance with the License. You may obtain a copy of -// the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -// License for the specific language governing permissions and limitations under -// the License. - -#import "PGPostgresStatement.h" - -@implementation PGPostgresStatement - -@synthesize name = _name; -@synthesize statement = _statement; - -#pragma mark - -#pragma mark Initialisation - -- (id)initWithStatement:(NSString *)queryStatement -{ - if ((self = [super init])) { - [self setStatement:queryStatement]; - [self setName:nil]; - } - - return self; -} - -#pragma mark - -#pragma mark Public API - -/** - * Returns a null terminated C string of the statement's name. - * - * @return The statement name. - */ -- (const char *)UTF8Name -{ - return [[self name] UTF8String]; -} - -/** - * Returns a null terminated C string of the statement. - * - * @return The prepared statement. - */ -- (const char *)UTF8Statement -{ - return [[self statement] UTF8String]; -} - -- (NSString *)description -{ - return [self name] ? [NSString stringWithFormat:@"<%@ %@>", [self className], [self name]] : [NSString stringWithFormat:@"<%@>", [self className]]; -} - -#pragma mark - - -- (void)dealloc -{ - if (_name) [_name release], _name = nil; - if (_statement) [_statement release], _statement = nil; - - [super dealloc]; -} - -@end -- cgit v1.2.3