WebCore: Changing SQLiteStatement::prepare() to return an error when it's
authordumi@chromium.org <dumi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Apr 2010 22:45:35 +0000 (22:45 +0000)
committerdumi@chromium.org <dumi@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 1 Apr 2010 22:45:35 +0000 (22:45 +0000)
commit30b5f1fe61e09011bffd53ab7fc55625e22fe9ca
tree22f6218f676423643c38f351ec76c4c8da1b4494
parent49f0b5d063d00e468d3b824ece3bf27fcf0929bc
WebCore: Changing SQLiteStatement::prepare() to return an error when it's
given a string that has more than one statement in it. Currently,
everything past the first statement is silently ignored.

Reviewed by Dimitri Glazkov.

Test: storage/executesql-accepts-only-one-statement.html

* platform/sql/SQLiteStatement.cpp:
(WebCore::SQLiteStatement::prepare):

LayoutTests: Testing that executeSql() accepts only one-statement strings.

Reviewed by Dimitri Glazkov.

* storage/executesql-accepts-only-one-statement-expected.txt: Added.
* storage/executesql-accepts-only-one-statement.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@56943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/storage/executesql-accepts-only-one-statement-expected.txt [new file with mode: 0644]
LayoutTests/storage/executesql-accepts-only-one-statement.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/sql/SQLiteStatement.cpp