diff options
-rw-r--r-- | Source/TableSource.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m index 3cc31deb..8a09b0ab 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -720,10 +720,10 @@ fetches the result as an array with a dictionary for each row in it [queryString appendString:[NSString stringWithFormat:@", ADD %@ (%@)", [chooseKeyButton titleOfSelectedItem], [[theRow objectForKey:@"Field"] backtickQuotedString]]]; } } - } else { + } else if(isEditingNewRow){ // Add AFTER ... only if the user added a new field [queryString appendString:[NSString stringWithFormat:@" AFTER %@", [[[tableFields objectAtIndex:(currentlyEditingRow -1)] objectForKey:@"Field"] backtickQuotedString]]]; } - + [mySQLConnection queryString:queryString]; if ( [[mySQLConnection getLastErrorMessage] isEqualToString:@""] ) { |