From 8f4a24fb6729cf26f5b8317e88513c6adde3b9f8 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 11 Sep 2018 12:07:25 -0400 Subject: [PATCH] (fix) move the folder id setting to avoid GDL error on Oracle --- SOPE/GDLContentStore/GCSFolder.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/SOPE/GDLContentStore/GCSFolder.m b/SOPE/GDLContentStore/GCSFolder.m index cf9c57d9b..8340f87e9 100644 --- a/SOPE/GDLContentStore/GCSFolder.m +++ b/SOPE/GDLContentStore/GCSFolder.m @@ -718,8 +718,6 @@ andAttribute: (EOAttribute *)_attribute [sql appendString:@"INSERT INTO "]; [sql appendString:_table]; [sql appendString:@" ("]; - if ([GCSFolderManager singleStoreMode]) - [sql appendString:@"c_folder_id, "]; for (i = 0, count = [keys count]; i < count; i++) { if (i != 0) [sql appendString:@", "]; @@ -727,8 +725,6 @@ andAttribute: (EOAttribute *)_attribute } [sql appendString:@") VALUES ("]; - if ([GCSFolderManager singleStoreMode]) - [sql appendFormat:@"%@, ", folderId]; for (i = 0, count = [keys count]; i < count; i++) { fieldName = [keys objectAtIndex:i]; @@ -1094,6 +1090,9 @@ andAttribute: (EOAttribute *)_attribute if (isNewRecord) { + if ([GCSFolderManager singleStoreMode]) + [quickRow setObject: folderId Key:@"c_folder_id"]; + if (!ofFlags.sameTableForQuick) error = (hasInsertDelegate ? [quickChannel insertRowX: quickRow forEntity: quickTableEntity]