diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-22 14:56:05 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-22 14:56:05 +0000 |
commit | db2d9565c996e206d82a441cfd8e60627f0eab6d (patch) | |
tree | cddd29b39dfaac95062a9412f4a70786f1205171 /Source/TableContent.m | |
parent | f4e32dd6a24793454e0af44a4429cdd9ca737724 (diff) | |
download | sequelpro-db2d9565c996e206d82a441cfd8e60627f0eab6d.tar.gz sequelpro-db2d9565c996e206d82a441cfd8e60627f0eab6d.tar.bz2 sequelpro-db2d9565c996e206d82a441cfd8e60627f0eab6d.zip |
• CSV Import
- if a parsed row in the csv file doesn't have the same number of columns as the first row fill the missing columns with SPNotLoaded to allow while importing that these missing data can be replaced by the table column's DEFAULT value
- fixed tiny issue for field mapper sheet to display the correct tooltip for default values
• SPTableData
- ATTENTION: changed the object for returned key 'default': if its value is NULL now it returns a [NSNull null] object
- changed instances to handle this [NSNull null] object (must be checked)
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index abc6a8e7..42f65d7f 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1283,7 +1283,7 @@ for ( i = 0 ; i < [dataColumns count] ; i++ ) { column = NSArrayObjectAtIndex(dataColumns, i); - if ([column objectForKey:@"default"] == nil || [[column objectForKey:@"default"] isEqualToString:@"NULL"]) { + if ([column objectForKey:@"default"] == nil || [column objectForKey:@"default"] == [NSNull null]) { [newRow addObject:[NSNull null]]; } else { [newRow addObject:[column objectForKey:@"default"]]; |