Commits

Tuukka Norri committed d1058b5

Added inheritance support into insert and delete methods
- I'm not quite sure, how deletion handles it, but on the other hand it shouldn't get invoked normally since the inheritance API isn't public.

Comments (0)

Files changed (1)

Framework/Sources/PGTSModificationNotifier.m

 	PGTSResultSet* res = [self checkModificationsInTableNamed: modificationTableName
 														query: query 
 												   parameters: parameters];
-    
-    NSNotificationCenter* nc = [NSNotificationCenter defaultCenter];
-    NSMutableDictionary* baseUserInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:
-        connection, kPGTSConnectionKey,
-        backendPID, kPGTSBackendPIDKey,
-        nil];
-    
     if ([res advanceRow])
     {
+		NSNotificationCenter* nc = [NSNotificationCenter defaultCenter];
+		NSMutableDictionary* baseUserInfo = [NSMutableDictionary dictionaryWithObjectsAndKeys:
+			connection, kPGTSConnectionKey,
+			backendPID, kPGTSBackendPIDKey,
+			nil];		
         unichar lastType = '\0';
         NSMutableArray* rows = [NSMutableArray array];