<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 25 20:47:29 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/JDBC-41/JDBC-41.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[JDBC-41] How to preserve order of rows?</title>
                <link>http://dev.clojure.org/jira/browse/JDBC-41</link>
                <project id="10021" key="JDBC">java.jdbc</project>
                        <description>&lt;p&gt;I&apos;d like to get the ordered record set within with-query-results&lt;br/&gt;
(or the way to restore the original order).&lt;br/&gt;
Is this possible with clojure/java.jdbc?&lt;/p&gt;</description>
                <environment></environment>
            <key id="15921">JDBC-41</key>
            <summary>How to preserve order of rows?</summary>
                <type id="4" iconUrl="http://dev.clojure.org/jira/images/icons/improvement.gif">Enhancement</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="seancorfield">Sean Corfield</assignee>
                                <reporter username="kostafey">Konstantin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Dec 2012 03:32:47 -0600</created>
                <updated>Sun, 7 Apr 2013 03:38:00 -0500</updated>
                    <resolved>Sun, 7 Apr 2013 03:38:00 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30315" author="seancorfield" created="Mon, 24 Dec 2012 12:49:52 -0600"  >&lt;p&gt;I assume you mean the order of columns within the rows, not the actual order of rows within the result set?&lt;/p&gt;

&lt;p&gt;I&apos;m looking at providing an alternative result set format using arrays instead of maps which will preserve column orders.&lt;/p&gt;

&lt;p&gt;Since maps are unordered by default in Clojure, I&apos;d be suspicious of code that relies on ordering of keys (so I&apos;m reducing this to &apos;minor&apos;).&lt;/p&gt;</comment>
                    <comment id="30319" author="kostafey" created="Mon, 24 Dec 2012 22:54:46 -0600"  >&lt;p&gt;You are right, I mean the order of columns, not the rows.&lt;/p&gt;

&lt;p&gt;I understand, that maps are unordered. There are few reasons when&lt;br/&gt;
the order is matters. The one of them is my task - simple&lt;br/&gt;
SQL database client.&lt;/p&gt;

&lt;p&gt;Probably it would be better to do this possibility optional,&lt;br/&gt;
since it is not used very often?&lt;/p&gt;</comment>
                    <comment id="30322" author="seancorfield" created="Tue, 25 Dec 2012 20:26:42 -0600"  >&lt;p&gt;An optional keyword argument sounds like a reasonable compromise. I&apos;m already looking at keyword arguments on resultset-seq for returning arrays instead of maps and returning an order-preserving map should be as simple as replacing (zipmap keys (row-values)) with (apply array-map (interleave keys (row-values)))&lt;/p&gt;</comment>
                    <comment id="30898" author="seancorfield" created="Sun, 7 Apr 2013 03:38:00 -0500"  >&lt;p&gt;Fixed in 0.3.0-SNAPSHOT by allowing :as-arrays argument to query and result-set-seq functions, which returns result as vector of column names, followed by vectors for each row.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>