<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11948</bug_id>
          
          <creation_ts>2011-02-01 19:00:29 +0000</creation_ts>
          <short_desc>index.openCursor&apos;s cursor should have a way to access the index&apos;s &quot;value&quot; (in addition to the index&apos;s key and objectStore&apos;s value)</short_desc>
          <delta_ts>2011-03-08 00:21:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>12261</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeremy Orlow">jorlow</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44980</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-02-01 19:00:29 +0000</bug_when>
    <thetext>As discussed in the mailing list thread from bug 11257, we should add some way for index.openCursor cursors to access the primary key for the objectStore.  .indexValue, .objectStoreKey, or .primaryKey might be good names to use for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46125</commentid>
    <comment_count>1</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-03-01 03:51:55 +0000</bug_when>
    <thetext>The idea is to have an IDBCursor and an IDBCursorWithValue interface which inherits from the former.  index.openKeyCursor will return the former and index/objectStore.openCursor will return the latter.  We&apos;ll add a primaryKey attribute to IDBCursor.  It will always be the key of the associated object store entry.  For index.openCursor cursors, the key attribute will be the key of the index.  For objectStore.openCursors, it&apos;ll be the same as the primaryKey.  The value will be the value of the objectStore entry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46483</commentid>
    <comment_count>2</comment_count>
    <who name="Jeremy Orlow">jorlow</who>
    <bug_when>2011-03-08 00:21:01 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 12261 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>