<?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>26774</bug_id>
          
          <creation_ts>2014-09-10 17:07:07 +0000</creation_ts>
          <short_desc>Specification does not distinguish between `IDBObjectStore` `add` and `put`</short_desc>
          <delta_ts>2014-09-10 19:03:55 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <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="Sam Giles">sam.e.giles</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>jsbell</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>sam.e.giles</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111351</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Giles">sam.e.giles</who>
    <bug_when>2014-09-10 17:07:07 +0000</bug_when>
    <thetext>The specification for `add` and `put` are seemingly identical in the current working draft perhaps bar a typo referring to structured cloning.

Are they intentionally identical?

The naming suggests that `put` would be idempotent and add would _always_ create a new entry or error if it&apos;s not possible.  If they are intentionally identical are two functions absolutely necessary?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111357</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Bell">jsbell</who>
    <bug_when>2014-09-10 17:43:38 +0000</bug_when>
    <thetext>Both methods say &quot;[run] the steps for storing a record into an object store...&quot;

add() has:

&quot;...with the no-overwrite flag flag set to true.&quot;

put() has:

...with the no-overwrite flag flag set to false.&quot;

which is the crux of the difference between them. The operation steps later in the spec detail how the no-overwrite flag is interpreted.

(I&apos;m guessing you missed this. If so, no worries. If not, my apologies - what am *I* missing?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111362</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Giles">sam.e.giles</who>
    <bug_when>2014-09-10 19:03:55 +0000</bug_when>
    <thetext>No, I&apos;d missed that detail. Apologies.  Thanks for the very prompt response! :D</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>