|
@@ -513,8 +513,8 @@ function process_data_array_for_line($priority, &$data, &$default_data, $addt) {
|
|
|
// Use prepared statement?
|
|
|
if (variable_get('tripal_bulk_loader_prepare', TRUE)) {
|
|
|
$options = array('statement_name' => 'record_' . $priority);
|
|
|
- if ($addt->line_num == 1 && $addt->group_index == 1) {
|
|
|
- $options['prepare'] = TRUE;
|
|
|
+ if (($addt->line_num > 1 && $addt->group_index == 1) OR $addt->group_index > 1) {
|
|
|
+ $options['is_prepared'] = TRUE;
|
|
|
}
|
|
|
}
|
|
|
else {
|