W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

[Bug 14404] New: Version of an IDBDatabase from an aborted version change transaction needs to be specified

From: <bugzilla@jessica.w3.org>
Date: Fri, 07 Oct 2011 17:23:17 +0000
To: public-webapps@w3.org
Message-ID: <bug-14404-2927@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14404

           Summary: Version of an IDBDatabase from an aborted version
                    change transaction needs to be specified
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Indexed Database API
        AssignedTo: dave.null@w3.org
        ReportedBy: me@kylehuey.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, public-webapps@w3.org


Consider the following for a database that does not already exist:

var db;
var request = indexedDB.open(name, 1);
request.onupgradeneeded = function() {
  db = request.result;
  throw "STOP";
}
request.onerror = function() {
  alert(db.version);
}

What should the version be here?  The new version?  The old version?  Something
else?  By my reading of the spec, since the version is not supposed to change
throughout the lifetime of an IDBDatabase, the answer is the new version, which
seems quite unintuitive since the upgrade failed.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Friday, 7 October 2011 17:23:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT