diff options
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r-- | Source/SPTableStructure.m | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index 74cae1c3..bbab0785 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -818,7 +818,11 @@ closes the keySheet ([[theRow objectForKey:@"Type"] isEqualToString:@"datetime"])) { // If the old row and new row dictionaries are equal then the user didn't actually change anything so don't continue - if ([oldRow isEqualToDictionary:theRow]) return YES; + if ([oldRow isEqualToDictionary:theRow]) { + isEditingRow = NO; + currentlyEditingRow = -1; + return YES; + } queryString = [NSMutableString stringWithFormat:@"ALTER TABLE %@ CHANGE %@ %@ %@", [selectedTable backtickQuotedString], @@ -828,7 +832,11 @@ closes the keySheet } else { // If the old row and new row dictionaries are equal then the user didn't actually change anything so don't continue - if ([oldRow isEqualToDictionary:theRow]) return YES; + if ([oldRow isEqualToDictionary:theRow]) { + isEditingRow = NO; + currentlyEditingRow = -1; + return YES; + } queryString = [NSMutableString stringWithFormat:@"ALTER TABLE %@ CHANGE %@ %@ %@(%@)", [selectedTable backtickQuotedString], |