Skip to content
Snippets Groups Projects
Commit eb76958a authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #1579 from metabase/fix-raw-sql-col-titles

Fix column title ordering in Raw SQL queries with lots of columns
parents b5d15c6d 83c827e3
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@
(let [[columns & [first-row :as rows]] (jdbc/query t-conn sql, :as-arrays? true)]
{:rows rows
:columns columns
:cols (for [[column first-value] (zipmap columns first-row)]
:cols (for [[column first-value] (partition 2 (interleave columns first-row))]
{:name column
:base_type (value->base-type first-value)})})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment