Browse Source

Made foreign key statement names include number of args to make unique for bulk loader

Lacey Sanderson 12 years ago
parent
commit
3f0763b237
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_core/api/tripal_core.api.inc

+ 1 - 1
tripal_core/api/tripal_core.api.inc

@@ -173,7 +173,7 @@ function tripal_core_chado_insert($table, $values, $options = array()) {
         // add the fk relationship info to the prepared statement name so that
         // we can prepare the selects run by the recrusive tripal_core_chado_get_foreign_key
         // function.
-        $foreign_options['statement_name'] = "fk_" . $table . "_" . $field;
+        $foreign_options['statement_name'] = "fk_" . $table . "_" . $field . '_' . sizeof($value) . 'args';
       }
       // select the value from the foreign key relationship for this value
       $results = tripal_core_chado_get_foreign_key($table_desc, $field, $value, $foreign_options);