Re: BUG: resultset-seq breaks on duplicate column names

2008-12-08 Thread Michael Reid
Has anybody else hit this? I just did. Its not tricky to alter resultset-seq to return maps with qualified keys: (defn resultset-seq "Creates and returns a lazy sequence of structmaps corresponding to the rows in the java.sql.ResultSet rs" [#^java.sql.ResultSet rs] (let [rsmeta (. rs (g

BUG: resultset-seq breaks on duplicate column names

2008-10-11 Thread Allen Rohner
If you create a SQL query that returns duplicate names, resultset-seq throws an exception: "java.lang.RuntimeException: java.lang.IllegalArgumentException: Too many arguments to struct constructor" i.e. (let [rs (query "select description,description from table")] (resultset-seq rs) The foll