[html5] executeSql for multiple statements

Jason Barnabe jason.barnabe at gmail.com
Sun Feb 7 13:26:53 PST 2010


Is SQLTransaction.executeSql supposed to support multiple statements in one
call? I try the following in Chrome:

openDatabase('test', '1.0', 'test', 1024).transaction(function (t) {
	t.executeSql('CREATE TABLE foo (id INTEGER);CREATE TABLE bar (id INTEGER)');
}, reportError);

function reportError(t, e) {
	alert(e.message);
}

Only the "foo" table is created, and no error is generated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/help-whatwg.org/attachments/20100207/a59fc64e/attachment-0001.htm>


More information about the Help mailing list