aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseCopy.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPDatabaseCopy.m')
-rw-r--r--Source/SPDatabaseCopy.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPDatabaseCopy.m b/Source/SPDatabaseCopy.m
index 5f0c8fe8..2d5f92c3 100644
--- a/Source/SPDatabaseCopy.m
+++ b/Source/SPDatabaseCopy.m
@@ -63,7 +63,7 @@
}
DLog(@"list of found tables of source db: %@", tables);
- [self createDatabase:targetDatabaseName];
+ BOOL success = [self createDatabase:targetDatabaseName];
SPTableCopy *dbActionTableCopy = [[SPTableCopy alloc] init];
[dbActionTableCopy setConnection:connection];
@@ -72,8 +72,11 @@
from:sourceDatabaseName
to:targetDatabaseName
withContent:copyWithContent]) {
+ } else {
+ success = NO;
}
}
+ return success;
}
- (BOOL) createDatabase: (NSString *)newDatabaseName {