Selaa lähdekoodia

Logs errors is now turned on by default. It's easy to turn off, and if you're seeing errors then you should probably fix those.

ccgus 12 vuotta sitten
vanhempi
commit
23eee37451
2 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 3 0
      CHANGES_AND_TODO_LIST.txt
  2. 4 4
      src/FMDatabase.m

+ 3 - 0
CHANGES_AND_TODO_LIST.txt

@@ -3,6 +3,9 @@ Zip, nada, zilch.  Got any ideas?
 
 If you would like to contribute some code- awesome!  I just ask that you make it conform to the coding conventions already set in here, and to add a couple of tests for your new code to fmdb.m.  And of course, the code should be of general use to more than just a couple of folks.  Send your patches to gus@flyingmeat.com.
 
+2013.10.26
+    Logs errors is now turned on by default.  It's easy to turn off, and if you're seeing errors then you should probably fix those.
+
 2013.06.26
     Added `NS_FORMAT_FUNCTION` qualifier to `executeQueryWithFormat` and `executeUpdateWithFormat`. These methods take format strings and variable number of arguments and you will now receive compiler warnings if the types of your parameters dont match the format string.
 

+ 4 - 4
src/FMDatabase.m

@@ -38,10 +38,10 @@ - (instancetype)initWithPath:(NSString*)aPath {
     if (self) {
         _databasePath       = [aPath copy];
         _openResultSets     = [[NSMutableSet alloc] init];
-        _db                 = 0x00;
-        _logsErrors         = 0x00;
-        _crashOnErrors      = 0x00;
-        _busyRetryTimeout   = 0x00;
+        _db                 = nil;
+        _logsErrors         = YES;
+        _crashOnErrors      = NO;
+        _busyRetryTimeout   = 0;
     }
     
     return self;