Просмотр исходного кода

Merge pull request #537 from chunhuaicheng/7.x-3.x

Fixed a bug for the API function chado_query()
Lacey-Anne Sanderson 6 лет назад
Родитель
Сommit
da7ce0b486
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tripal_chado/api/tripal_chado.query.api.inc

+ 1 - 1
tripal_chado/api/tripal_chado.query.api.inc

@@ -1671,7 +1671,7 @@ function chado_query($sql, $args = array()) {
   // names with 'chado'.
   if ($is_local) {
     // Remove carriage returns from the SQL.
-    $sql = preg_replace('/\n/', '', $sql);
+    $sql = preg_replace('/\n/', ' ', $sql);
 
     // Prefix the tables with their correct schema.
     // Chado tables should be enclosed in curly brackets (ie: {feature} )