Just to point out what's not supported by resultset-seq:

1. Flexible conversion of column label to a Clojure equivalent.

2. Handling of duplicate column labels in a resultset. For example,
this is a perfectly valid SQL statement in MySQL:
SELECT productId, productId+4 as productId FROM `t_product`
This is mainly limited by the fact that maps do not allow duplicate
keys. While it is debatable whether writing such queries is a good
idea, often the person running the query is not the same as the
person(s) wrote them. Fixing this problem may require creating a new
protocol/type. An experiment is here:
https://bitbucket.org/kumarshantanu/clj-dbspec/src/c0b6797faaec/src/main/clj/org/bituf/clj_dbspec.clj#cl-329
(see upto row-seq)

It may be a good idea to build a complete replacement for resultset-
seq in c.j.j.

Regards,
Shantanu

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to