Эх сурвалжийг харах

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

August Mueller 14 жил өмнө
parent
commit
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) {