浏览代码

I'm starting to think I'm doing this the wrong way.

August Mueller 14 年之前
父节点
当前提交
86846836bd
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/FMDatabase.m

+ 3 - 0
src/FMDatabase.m

@@ -24,6 +24,9 @@ + (BOOL)isThreadSafe {
 }
 
 - (id)initWithPath:(NSString*)aPath {
+    
+    assert(sqlite3_threadsafe()); // whoa there big boy- gotta make sure sqlite it happy with what we're going to do.
+    
     self = [super init];
     
     if (self) {