diff options
author | rowanbeentje <rowan@beent.je> | 2013-02-18 01:05:32 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-02-18 01:05:32 +0000 |
commit | f7f5013b74e890c743482a3f6bb5dd36690a36da (patch) | |
tree | 9eb57fe43a471339318b0d6f63d16f63ee88bda3 /Source | |
parent | 621ae24a28249f205837d8889654a2d4afe02093 (diff) | |
download | sequelpro-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')
-rw-r--r-- | Source/SPFieldMapperController.m | 2 |
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]; } |