Browse Source

Fixed bulk loader to use is_prepared rather then prepare since the tripal_core_chado_insert has changed

Lacey Sanderson 12 years ago
parent
commit
9fb12a9da3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_bulk_loader/tripal_bulk_loader.loader.inc

+ 2 - 2
tripal_bulk_loader/tripal_bulk_loader.loader.inc

@@ -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 {