浏览代码

Fixed bug in bulk loader where table not surrounded by brakets

Stephen Ficklin 11 年之前
父节点
当前提交
c6926b57aa
共有 1 个文件被更改,包括 1 次插入1 次删除
  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');
       $lockmode = variable_get('tripal_bulk_loader_lock', 'ROW EXCLUSIVE');
       foreach ($tables as $table) {
       foreach ($tables as $table) {
         print "\t\t\t$lockmode for $table\n";
         print "\t\t\t$lockmode for $table\n";
-        chado_query("LOCK TABLE ".$table." IN ".$lockmode." MODE");
+        chado_query("LOCK TABLE {".$table."} IN ".$lockmode." MODE");
       }
       }
     }
     }