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

Fix column titles in Raw SQL queries with lots of columns

parent ec0ea174
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