aboutsummaryrefslogtreecommitdiffstats
path: root/UnitTests
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-09-27 00:21:35 +0000
committerstuconnolly <stuart02@gmail.com>2011-09-27 00:21:35 +0000
commit81cd8b8581e1af8bb63f2be9786737671e54c052 (patch)
treef3ce3ae38b82a8db8e8b7f339e99aa94568bdfd7 /UnitTests
parent915ea2f00e1f31a57e74e987062a1b5c2381635d (diff)
downloadsequelpro-81cd8b8581e1af8bb63f2be9786737671e54c052.tar.gz
sequelpro-81cd8b8581e1af8bb63f2be9786737671e54c052.tar.bz2
sequelpro-81cd8b8581e1af8bb63f2be9786737671e54c052.zip
QueryKit updates.
Diffstat (limited to 'UnitTests')
-rw-r--r--UnitTests/QKSelectQueryTests.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/UnitTests/QKSelectQueryTests.m b/UnitTests/QKSelectQueryTests.m
index 5d013987..84b4584c 100644
--- a/UnitTests/QKSelectQueryTests.m
+++ b/UnitTests/QKSelectQueryTests.m
@@ -32,7 +32,7 @@ static NSString *QKTestFieldTwo = @"test_field2";
static NSString *QKTestFieldThree = @"test_field3";
static NSString *QKTestFieldFour = @"test_field4";
-static NSString *QKTestParameterOne = @"10";
+static NSUInteger QKTestParameterOne = 10;
@implementation QKSelectQueryTests
@@ -48,7 +48,7 @@ static NSString *QKTestParameterOne = @"10";
[_query addField:QKTestFieldThree];
[_query addField:QKTestFieldFour];
- [_query addParameter:QKTestFieldOne operator:QKEqualityOperator value:QKTestParameterOne];
+ [_query addParameter:QKTestFieldOne operator:QKEqualityOperator value:[NSNumber numberWithUnsignedInteger:QKTestParameterOne]];
}
#pragma mark -
@@ -68,7 +68,7 @@ static NSString *QKTestParameterOne = @"10";
- (void)testSelectQueryConstraintsAreCorrect
{
- NSString *query = [NSString stringWithFormat:@"WHERE %@ %@ %@", QKTestFieldOne, [QKQueryUtilities operatorRepresentationForType:QKEqualityOperator], QKTestParameterOne];
+ NSString *query = [NSString stringWithFormat:@"WHERE %@ %@ %@", QKTestFieldOne, [QKQueryUtilities operatorRepresentationForType:QKEqualityOperator], [NSNumber numberWithUnsignedInteger:QKTestParameterOne]];
STAssertTrue(([[_query query] rangeOfString:query].location != NSNotFound), @"query constraints");
}