Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added -longLongForQuery: method

  • Loading branch information...
commit 1a3cf0f872b9d017eb1eb977df85cfeedce45156 1 parent 86b5ccc
@snej snej authored
Showing with 5 additions and 0 deletions.
  1. +1 −0  src/FMDatabaseAdditions.h
  2. +4 −0 src/FMDatabaseAdditions.m
View
1  src/FMDatabaseAdditions.h
@@ -12,6 +12,7 @@
- (int)intForQuery:(NSString*)objs, ...;
- (long)longForQuery:(NSString*)objs, ...;
+- (long long)longLongForQuery:(NSString*)objs, ...;
- (BOOL)boolForQuery:(NSString*)objs, ...;
- (double)doubleForQuery:(NSString*)objs, ...;
- (NSString*)stringForQuery:(NSString*)objs, ...;
View
4 src/FMDatabaseAdditions.m
@@ -35,6 +35,10 @@ - (long)longForQuery:(NSString*)query, ... {
RETURN_RESULT_FOR_QUERY_WITH_SELECTOR(long, longForColumnIndex);
}
+- (long long)longLongForQuery:(NSString*)query, ... {
+ RETURN_RESULT_FOR_QUERY_WITH_SELECTOR(long long, longLongIntForColumnIndex);
+}
+
- (BOOL)boolForQuery:(NSString*)query, ... {
RETURN_RESULT_FOR_QUERY_WITH_SELECTOR(BOOL, boolForColumnIndex);
}
Please sign in to comment.
Something went wrong with that request. Please try again.