diff options
author | rowanbeentje <rowan@beent.je> | 2009-03-11 13:29:03 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-03-11 13:29:03 +0000 |
commit | 75579e243a7482d43f03034d86478772e83d096b (patch) | |
tree | e167d42e0cc27fdde41c364eef3a23d9d8d4ea1a /Source | |
parent | 8c6963a57edfc0e77177bc3baa4f088b601ccfdd (diff) | |
download | sequelpro-75579e243a7482d43f03034d86478772e83d096b.tar.gz sequelpro-75579e243a7482d43f03034d86478772e83d096b.tar.bz2 sequelpro-75579e243a7482d43f03034d86478772e83d096b.zip |
Merge in r391 from trunk, fixing problems with adding rows when "Reload table after adding a row" is disabledrelease-0.9.4
Diffstat (limited to 'Source')
-rw-r--r-- | Source/TableContent.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m index 3443a73f..a25a2cf4 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1266,8 +1266,8 @@ // Set the insertId for fields with auto_increment for ( i = 0; i < [theColumns count] ; i++ ) { - if ([[theColumns objectAtIndex:i] objectForKey:@"autoincrement"]) { - [[filteredResult objectAtIndex:currentlyEditingRow] setObject:[NSNumber numberWithLong:[mySQLConnection insertId]] + if ([[[theColumns objectAtIndex:i] objectForKey:@"autoincrement"] intValue]) { + [[filteredResult objectAtIndex:currentlyEditingRow] setObject:[[NSNumber numberWithLong:[mySQLConnection insertId]] description] forKey:[columnNames objectAtIndex:i]]; } } |