| 
									
										
										
										
											2012-04-30 07:53:53 -07:00
										 |  |  | UPDATE {$NAMESPACE}_differential.differential_revision SET
 | 
					
						
							| 
									
										
										
										
											2012-04-19 00:17:58 -07:00
										 |  |  |   dateCommitted = (
 | 
					
						
							|  |  |  |     SELECT MIN(dateCreated)
 | 
					
						
							| 
									
										
										
										
											2012-04-30 07:53:53 -07:00
										 |  |  |     FROM {$NAMESPACE}_differential.differential_comment
 | 
					
						
							| 
									
										
										
										
											2012-04-19 00:17:58 -07:00
										 |  |  |     WHERE revisionID = differential_revision.id AND action = 'commit'
 | 
					
						
							|  |  |  |   )
 | 
					
						
							|  |  |  |   WHERE status = 3 AND dateCommitted IS NULL;
 |