From 01b0b5f783a3e0e46fee0ba7e56e93db72d3f49f Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 21 Nov 2016 10:00:01 -0500 Subject: [PATCH] (fix) adpated previous commit for v2 non-single instance store --- SOPE/GDLContentStore/GCSFolder.m | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/SOPE/GDLContentStore/GCSFolder.m b/SOPE/GDLContentStore/GCSFolder.m index 98e4c2a35..03a1cd915 100644 --- a/SOPE/GDLContentStore/GCSFolder.m +++ b/SOPE/GDLContentStore/GCSFolder.m @@ -1264,21 +1264,12 @@ andAttribute: (EOAttribute *)_attribute attribute = [self _attributeForColumn: @"c_name"]; nowDate = [NSCalendarDate date]; - if ([GCSFolderManager singleStoreMode]) - touchSql = [NSString stringWithFormat: @"UPDATE %@ SET c_lastmodified = %u WHERE c_name = %@ AND c_folder_id = %@", - table, - (unsigned int) [nowDate timeIntervalSince1970], - [self _formatRowValue: _name - withAdaptor: [adaptorCtx adaptor] - andAttribute: attribute], - folderId]; - else - touchSql = [NSString stringWithFormat: @"UPDATE %@ SET c_lastmodified = %u WHERE c_name = %@", - table, - (unsigned int) [nowDate timeIntervalSince1970], - [self _formatRowValue: _name - withAdaptor: [adaptorCtx adaptor] - andAttribute: attribute]]; + touchSql = [NSString stringWithFormat: @"UPDATE %@ SET c_lastmodified = %u WHERE c_name = %@", + table, + (unsigned int) [nowDate timeIntervalSince1970], + [self _formatRowValue: _name + withAdaptor: [adaptorCtx adaptor] + andAttribute: attribute]]; [channel evaluateExpressionX: touchSql];