aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-02-18 01:05:32 +0000
committerrowanbeentje <rowan@beent.je>2013-02-18 01:05:32 +0000
commitf7f5013b74e890c743482a3f6bb5dd36690a36da (patch)
tree9eb57fe43a471339318b0d6f63d16f63ee88bda3 /Source/SPFieldMapperController.m
parent621ae24a28249f205837d8889654a2d4afe02093 (diff)
downloadsequelpro-f7f5013b74e890c743482a3f6bb5dd36690a36da.tar.gz
sequelpro-f7f5013b74e890c743482a3f6bb5dd36690a36da.tar.bz2
sequelpro-f7f5013b74e890c743482a3f6bb5dd36690a36da.zip
- Add a check for SPNotLoaded values when automatically generating new tables when importing CSVs, fixing Issue #1621 (SPNotLoaded values are generated when rows shorter than the header row are seen)
Diffstat (limited to 'Source/SPFieldMapperController.m')
-rw-r--r--Source/SPFieldMapperController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m
index b4982a22..b31928d5 100644
--- a/Source/SPFieldMapperController.m
+++ b/Source/SPFieldMapperController.m
@@ -848,7 +848,7 @@ static NSString *SPTableViewSqlColumnID = @"sql";
}
columnCounter = 0;
for(id col in row) {
- if(col && ![col isNSNull]) {
+ if(col && ![col isNSNull] && ![col isSPNotLoaded]) {
if([col isKindOfClass:[NSString class]] && maxLengthOfSourceColumns[columnCounter] < (NSInteger)[(NSString*)col length]) {
maxLengthOfSourceColumns[columnCounter] = [(NSString*)col length];
}