浏览代码

Fixed sql highlighting

Andrew Kane 8 年之前
父节点
当前提交
624b75a50e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/views/blazer/queries/show.html.erb

+ 1 - 1
app/views/blazer/queries/show.html.erb

@@ -172,7 +172,7 @@
   </script>
   </script>
 <% end %>
 <% end %>
 
 
-<% if Blazer.data_sources[@query.data_source].adapter == "sql" %>
+<% if %w[sql presto].include?(Blazer.data_sources[@query.data_source].adapter) %>
   <script>
   <script>
     // do not highlight really long queries
     // do not highlight really long queries
     // this can lead to performance issues
     // this can lead to performance issues