aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/QueryKit/Source/QKQuery.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-02-25 20:03:44 +0000
committerstuconnolly <stuart02@gmail.com>2012-02-25 20:03:44 +0000
commit9e3d5b84e2c6a2159a534bbe9644be70b70937c9 (patch)
tree391b0ffa46e54320187720ece8d8d830e42d2e75 /Frameworks/QueryKit/Source/QKQuery.m
parent92022eb14512d1e6aa17c6bb956f83d7b3f7e579 (diff)
downloadsequelpro-9e3d5b84e2c6a2159a534bbe9644be70b70937c9.tar.gz
sequelpro-9e3d5b84e2c6a2159a534bbe9644be70b70937c9.tar.bz2
sequelpro-9e3d5b84e2c6a2159a534bbe9644be70b70937c9.zip
Add some more QueryKit tests.
Diffstat (limited to 'Frameworks/QueryKit/Source/QKQuery.m')
-rw-r--r--Frameworks/QueryKit/Source/QKQuery.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/Frameworks/QueryKit/Source/QKQuery.m b/Frameworks/QueryKit/Source/QKQuery.m
index ded198ba..21053203 100644
--- a/Frameworks/QueryKit/Source/QKQuery.m
+++ b/Frameworks/QueryKit/Source/QKQuery.m
@@ -378,9 +378,7 @@ static NSString *QKNoQueryTableException = @"QKNoQueryTable";
[orderBy setString:[orderBy substringToIndex:([orderBy length] - 2)]];
}
- if (_orderDescending) {
- [orderBy appendString:@" DESC"];
- }
+ [orderBy appendString:_orderDescending ? @" DESC" : @" ASC"];
return orderBy;
}