<!-- 
RSS generated by JIRA (4.4#649-r158309) at Tue May 21 17:53:41 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/LOGIC-37/LOGIC-37.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>[LOGIC-37] The facts and retractions functions do not take the relation&apos;s namespace into account when resolving the index.</title>
                <link>http://dev.clojure.org/jira/browse/LOGIC-37</link>
                <project id="10020" key="LOGIC">core.logic</project>
                        <description>&lt;p&gt;Inserting facts into a relation that is defined in another namespace, specifically a namespace that has been required but not referred (I don&apos;t see the bug if I :use the other namespace).&lt;/p&gt;

&lt;p&gt;I&apos;ve tracked the problem down to this line:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic.clj#L1621&quot;&gt;https://github.com/clojure/core.logic/blob/master/src/main/clojure/clojure/core/logic.clj#L1621&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the facts function, when the relation index gets resolved, the namespace is not taken into account,&lt;/p&gt;

&lt;p&gt;index (var-get (resolve (index-sym (.name rel) arity o)))&lt;/p&gt;

&lt;p&gt;as it is when resolving the relation set.&lt;/p&gt;

&lt;p&gt;rel-set (var-get (ns-resolve rel-ns (set-sym (.name rel) arity)))&lt;/p&gt;

&lt;p&gt;Using ns-resolve, with rel-ns, seems to fix the issue for  me.&lt;/p&gt;

&lt;p&gt;index (var-get (ns-resolve rel-ns (index-sym (.name rel) arity o)))&lt;/p&gt;</description>
                <environment></environment>
            <key id="15403">LOGIC-37</key>
            <summary>The facts and retractions functions do not take the relation&apos;s namespace into account when resolving the index.</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="dnolen">David Nolen</assignee>
                                <reporter username="liebke">David Edgar Liebke</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 May 2012 12:29:28 -0500</created>
                <updated>Thu, 27 Sep 2012 21:52:52 -0500</updated>
                    <resolved>Thu, 27 Sep 2012 21:52:52 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="29542" author="dnolen" created="Thu, 27 Sep 2012 21:42:47 -0500"  >&lt;p&gt;Apologies for the slow response. Is this still a problem?&lt;/p&gt;</comment>
                    <comment id="29545" author="liebke" created="Thu, 27 Sep 2012 21:50:36 -0500"  >&lt;p&gt;Hi David,&lt;/p&gt;

&lt;p&gt;Nope, the problem has been resolved, as I recall you applied the patch and cut a new release the same day I submitted the request; so thanks again for the quick fix!&lt;/p&gt;

&lt;p&gt;David&lt;/p&gt;</comment>
                    <comment id="29546" author="dnolen" created="Thu, 27 Sep 2012 21:52:52 -0500"  >&lt;p&gt;fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11165" name="0001-Fixed-issue-resolving-the-clojure.core.logic.Rel-ind.patch" size="1574" author="liebke" created="Thu, 3 May 2012 12:29:28 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10001">Code</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                        </customfields>
    </item>
</channel>
</rss>