Skip to content
  • dumi@chromium.org's avatar
    WebCore: Changing SQLiteStatement::prepare() to return an error when it's · 8ce4b25c
    dumi@chromium.org authored
    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: http://svn.webkit.org/repository/webkit/trunk@56943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8ce4b25c