[html5] r1061 - /
whatwg at whatwg.org
whatwg at whatwg.org
Wed Oct 17 00:19:22 PDT 2007
Author: ianh
Date: 2007-10-17 00:19:21 -0700 (Wed, 17 Oct 2007)
New Revision: 1061
Modified:
index
source
Log:
[] (0) Make sqlExecute() take an argument array instead of varargs.
Modified: index
===================================================================
--- index 2007-10-17 04:57:23 UTC (rev 1060)
+++ index 2007-10-17 07:19:21 UTC (rev 1061)
@@ -30243,11 +30243,13 @@
string, in which case there is no expected version — any version is
fine.
- <pre class=idl>interface <dfn id=database0>Database</dfn> {
+ <pre
+ class=idl>typedef sequence<Object> <dfn id=objectarray>ObjectArray</dfn>;
+
+interface <dfn id=database0>Database</dfn> {
readonly attribute DOMString <a href="#version" title=dom-database-version>version</a>;
bool <a href="#changeversion" title=dom-database-changeVersion>changeVersion</a>(in DOMString oldVersion, in DOMString newVersion);
- void <a href="#executesql" title=dom-database-executeSql>executeSql</a>(in DOMString sqlStatement, <var title="">arguments...</var>, in <a href="#sqlcallback">SQLCallback</a> callback);<!--
- void <span title="dom-database-executeSql">executeSql</span>(in Array sqlStatements, in <span>SQLCallback</span> callback); // XXX add this in v2 -->
+ void <a href="#executesql" title=dom-database-executeSql>executeSql</a>(in DOMString sqlStatement, in <a href="#objectarray">ObjectArray</a> arguments, in <a href="#sqlcallback">SQLCallback</a> callback);
void <a href="#closetransaction" title=dom-database-closeTransaction>closeTransaction</a>();
};
@@ -30289,7 +30291,7 @@
<p>When the <dfn id=executesql
title=dom-database-executeSql><code>executeSql(<var
- title="">sqlStatement</var>, <var title="">arguments...</var>, <var
+ title="">sqlStatement</var>, <var title="">arguments</var>, <var
title="">callback</var>)</code></dfn> method is invoked, the user agent
must run the following algorithm. Each <code><a
href="#database0">Database</a></code> object has a <dfn id=record>record
@@ -30305,7 +30307,7 @@
<p>The <code title="">?</code> placeholders, as the statement is
executed, must each take the value of their corresponding argument (from
- <var title="">arguments...</var>, in the same order).</p>
+ the <var title="">arguments</var> array, in the same order).</p>
<p>If the syntax of <var title="">sqlStatement</var> is not valid (except
for the use of <code title="">?</code> characters in the place of
@@ -30313,10 +30315,10 @@
due to security reasons), then the the method must raise a
<code>SYNTAX_ERR</code> exception and abort these steps.</p>
- <p>If the number of <var title="">arguments...</var> is not equal to the
- number of <code title="">?</code> placeholders in the statement, then
- the method must raise a <code>SYNTAX_ERR<!-- XXX
- is that the best exception? --></code>
+ <p>If the number of items in the <var title="">arguments</var> array is
+ not equal to the number of <code title="">?</code> placeholders in the
+ statement, then the method must raise a
+ <code>SYNTAX_ERR<!-- XXX is that the best exception? --></code>
exception and abort these steps.</p>
<li>
Modified: source
===================================================================
--- source 2007-10-17 04:57:23 UTC (rev 1060)
+++ source 2007-10-17 07:19:21 UTC (rev 1061)
@@ -27835,11 +27835,12 @@
which case there is no expected version — any version is
fine.</p>
- <pre class="idl">interface <dfn>Database</dfn> {
+ <pre class="idl">typedef sequence<Object> <dfn>ObjectArray</dfn>;
+
+interface <dfn>Database</dfn> {
readonly attribute DOMString <span title="dom-database-version">version</span>;
bool <span title="dom-database-changeVersion">changeVersion</span>(in DOMString oldVersion, in DOMString newVersion);
- void <span title="dom-database-executeSql">executeSql</span>(in DOMString sqlStatement, <var title="">arguments...</var>, in <span>SQLCallback</span> callback);<!--
- void <span title="dom-database-executeSql">executeSql</span>(in Array sqlStatements, in <span>SQLCallback</span> callback); // XXX add this in v2 -->
+ void <span title="dom-database-executeSql">executeSql</span>(in DOMString sqlStatement, in <span>ObjectArray</span> arguments, in <span>SQLCallback</span> callback);
void <span title="dom-database-closeTransaction">closeTransaction</span>();
};
@@ -27882,7 +27883,7 @@
<p>When the <dfn
title="dom-database-executeSql"><code>executeSql(<var
- title="">sqlStatement</var>, <var title="">arguments...</var>, <var
+ title="">sqlStatement</var>, <var title="">arguments</var>, <var
title="">callback</var>)</code></dfn> method is invoked, the user
agent must run the following algorithm. Each <code>Database</code>
object has a <dfn>record of the active callback's transaction</dfn>,
@@ -27901,7 +27902,8 @@
<p>The <code title="">?</code> placeholders, as the statement is
executed, must each take the value of their corresponding argument
- (from <var title="">arguments...</var>, in the same order).</p>
+ (from the <var title="">arguments</var> array, in the same
+ order).</p>
<p>If the syntax of <var title="">sqlStatement</var> is not valid
(except for the use of <code title="">?</code> characters in the
@@ -27910,11 +27912,11 @@
raise a <code>SYNTAX_ERR</code> exception and abort these
steps.</p>
- <p>If the number of <var title="">arguments...</var> is not equal
- to the number of <code title="">?</code> placeholders in the
- statement, then the method must raise a <code>SYNTAX_ERR<!-- XXX
- is that the best exception? --></code> exception and abort these
- steps.</p>
+ <p>If the number of items in the <var title="">arguments</var>
+ array is not equal to the number of <code title="">?</code>
+ placeholders in the statement, then the method must raise a
+ <code>SYNTAX_ERR<!-- XXX is that the best exception? --></code>
+ exception and abort these steps.</p>
</li>
More information about the Commit-Watchers
mailing list