Skip to content

Commit

Permalink
Prevent key-only inserts for new rows during import
Browse files Browse the repository at this point in the history
Closes #103

- The set_slice() later in import_fields will create the new records
  just fine.
- Tested with MySQL by uploading a spreadsheet with new rows for a table
  with a foreign key.
- Also tested with a table with an auto-incrementing key.
  • Loading branch information
Josh Lavin committed Jul 21, 2016
1 parent f719ca1 commit cb8c9d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion code/UI_Tag/import_fields.coretag
Expand Up @@ -406,7 +406,6 @@ EOF
$out .= "${tmsg}Blank key, no autonumber option, skipping.\n";
next;
}
$k = $db->set_row($k);
$out .= "${tmsg}Adding record '$k'.\n" if $verbose;
$addcount++;
}
Expand Down

0 comments on commit cb8c9d5

Please sign in to comment.