Explorar o código

Fixed bug in bulk loader where table not surrounded by brakets

Stephen Ficklin %!s(int64=11) %!d(string=hai) anos
pai
achega
c6926b57aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal_bulk_loader/includes/tripal_bulk_loader.loader.inc

+ 1 - 1
tripal_bulk_loader/includes/tripal_bulk_loader.loader.inc

@@ -361,7 +361,7 @@ function tripal_bulk_loader_load_data($nid, $job_id) {
       $lockmode = variable_get('tripal_bulk_loader_lock', 'ROW EXCLUSIVE');
       foreach ($tables as $table) {
         print "\t\t\t$lockmode for $table\n";
-        chado_query("LOCK TABLE ".$table." IN ".$lockmode." MODE");
+        chado_query("LOCK TABLE {".$table."} IN ".$lockmode." MODE");
       }
     }