<< Back to previous view

[JDBC-66] Permit non-keyword labels Created: 17/Jul/13  Updated: 01/Jun/16  Resolved: 15/Sep/13

Status: Closed
Project: java.jdbc
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Kyle Cordes Assignee: Sean Corfield
Resolution: Declined Votes: 0
Labels: None


This line of code in jdbc.clj:

(map (comp keyword identifiers)))

... made sense before the newish as-arrays? feature. The results were always maps, and with maps it is idiomatic to use keywords as keys.

But when returning the results as nested lists, the first entry contains the field identifiers; these might very reasonably be something other than keywords.

I suggest that when the user passes in their own function to translate from fields to keys, that the user be able to make them keys whatever they like, perhaps plain strings or perhaps somethings else.

As a workaround, of one can just let this code keywordize the information, then unkeywordize it outside afterward.

Comment by Sean Corfield [ 15/Sep/13 4:10 PM ]

Given the workaround is easy - and the behavior to-date is well-known and well-documented - I'm not going to complicate the machinery to support non-keywords in array results here.

Generated at Fri Jan 19 05:38:03 CST 2018 using JIRA 4.4#649-r158309.