Skip to content

Commit

Permalink
Quick update on a little test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccgus committed Apr 27, 2012
1 parent ccee9b6 commit c226e8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions fmdb.xcodeproj/project.pbxproj
Expand Up @@ -282,7 +282,9 @@
GCC_PREFIX_HEADER = fmdb_Prefix.pch; GCC_PREFIX_HEADER = fmdb_Prefix.pch;
INSTALL_PATH = "$(HOME)/bin"; INSTALL_PATH = "$(HOME)/bin";
LIBRARY_SEARCH_PATHS = "$(LIBRARY_SEARCH_PATHS)"; LIBRARY_SEARCH_PATHS = "$(LIBRARY_SEARCH_PATHS)";
MACOSX_DEPLOYMENT_TARGET = 10.7;
PRODUCT_NAME = fmdb; PRODUCT_NAME = fmdb;
SDKROOT = macosx;
}; };
name = Debug; name = Debug;
}; };
Expand All @@ -298,7 +300,9 @@
GCC_PREFIX_HEADER = fmdb_Prefix.pch; GCC_PREFIX_HEADER = fmdb_Prefix.pch;
INSTALL_PATH = "$(HOME)/bin"; INSTALL_PATH = "$(HOME)/bin";
LIBRARY_SEARCH_PATHS = "$(LIBRARY_SEARCH_PATHS)"; LIBRARY_SEARCH_PATHS = "$(LIBRARY_SEARCH_PATHS)";
MACOSX_DEPLOYMENT_TARGET = 10.7;
PRODUCT_NAME = fmdb; PRODUCT_NAME = fmdb;
SDKROOT = macosx;
}; };
name = Release; name = Release;
}; };
Expand All @@ -314,6 +318,7 @@
GCC_WARN_PEDANTIC = YES; GCC_WARN_PEDANTIC = YES;
GCC_WARN_SIGN_COMPARE = YES; GCC_WARN_SIGN_COMPARE = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
}; };
name = Debug; name = Debug;
}; };
Expand All @@ -324,6 +329,7 @@
GCC_VERSION = com.apple.compilers.llvm.clang.1_0; GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.7;
}; };
name = Release; name = Release;
}; };
Expand Down
2 changes: 1 addition & 1 deletion src/fmdb.m
Expand Up @@ -532,7 +532,7 @@ int main (int argc, const char * argv[]) {
FMDBQuickCheck([db executeUpdate:@"create table t5 (a text, b int, c blob, d text, e text)"]); FMDBQuickCheck([db executeUpdate:@"create table t5 (a text, b int, c blob, d text, e text)"]);
FMDBQuickCheck(([db executeUpdateWithFormat:@"insert into t5 values (%s, %d, %@, %c, %lld)", "text", 42, @"BLOB", 'd', 12345678901234])); FMDBQuickCheck(([db executeUpdateWithFormat:@"insert into t5 values (%s, %d, %@, %c, %lld)", "text", 42, @"BLOB", 'd', 12345678901234]));


rs = [db executeQueryWithFormat:@"select * from t5 where a = %s", "text"]; rs = [db executeQueryWithFormat:@"select * from t5 where a = %s and a = %@ and b = %d", "text", @"text", 42];
FMDBQuickCheck((rs != nil)); FMDBQuickCheck((rs != nil));


[rs next]; [rs next];
Expand Down

0 comments on commit c226e8e

Please sign in to comment.