<div dir="ltr"><div><div>I was skimming through the code and the DB, and I have a question:<br><br></div><div>how does the schema handle duplicate targets?<br></div><br>sqlite> select * from targets where host="<a href="http://www.google.com">www.google.com</a>";<br>

<a href="http://www.google.com">www.google.com</a>|3175<br><a href="http://www.google.com">www.google.com</a>|6078<br><br></div><div>It seems to me that in this case we could have a problem.<br></div><div>This lines in queryTarget: function(target)<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">

<table class=""><tbody><tr class="" id="src-chrome-content-code-httpsrules-js-P87"><td class=""><pre class="">try {</pre>
      </td>
    </tr>
    <tr class="" id="src-chrome-content-code-httpsrules-js-P88">
      
      
      
      
      <td class="">
        <pre class="">    if (statement.executeStep())</pre>
      </td>
    </tr>
    <tr class="" id="src-chrome-content-code-httpsrules-js-P89">
      
      
      
      
      <td class="">
        <pre class="">        return statement.row.contents;</pre>
      </td>
    </tr>
    <tr class="" id="src-chrome-content-code-httpsrules-js-P90">
      
      
      
      
      <td class="">
        <pre class="">    } finally {</pre>
      </td>
    </tr>
    <tr class="" id="src-chrome-content-code-httpsrules-js-P91">
      
      
      
      
      <td class="">
        <pre class="">      statement.reset();</pre>
      </td>
    </tr>
    <tr class="" id="src-chrome-content-code-httpsrules-js-P92">
      
      
      
      
      <td class="">
        <pre class="">    }</pre></td></tr></tbody></table></blockquote><div><br></div><div>look like they can fetch only one row from the result. What happens if we have multiple matches?<br><br></div><div>I may be mistaken, my knowledge of this programming is limited, but I thought I should ask.<br>

<br>Cheers,<br><br>Claudio<br></div></div></div>