| Index: Source/modules/webdatabase/SQLTransaction.cpp
|
| diff --git a/Source/modules/webdatabase/SQLTransaction.cpp b/Source/modules/webdatabase/SQLTransaction.cpp
|
| index 31a6605d36e5dd9e5d4f14ee97032f92a789056c..0b302ddc0d94123d0b2ff15b1492905188122f5e 100644
|
| --- a/Source/modules/webdatabase/SQLTransaction.cpp
|
| +++ b/Source/modules/webdatabase/SQLTransaction.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "modules/webdatabase/SQLTransaction.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/modules/v8/V8BindingForModules.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/html/VoidCallback.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| @@ -269,7 +270,7 @@ void SQLTransaction::performPendingCallback()
|
| runStateMachine();
|
| }
|
|
|
| -void SQLTransaction::executeSQL(const String& sqlStatement, const Vector<SQLValue>& arguments, SQLStatementCallback* callback, SQLStatementErrorCallback* callbackError, ExceptionState& exceptionState)
|
| +void SQLTransaction::executeSql(const String& sqlStatement, const Nullable<Vector<ScriptValue>>& arguments, SQLStatementCallback* callback, SQLStatementErrorCallback* callbackError, ExceptionState& exceptionState)
|
| {
|
| if (!m_executeSqlAllowed) {
|
| exceptionState.throwDOMException(InvalidStateError, "SQL execution is disallowed.");
|
| @@ -288,7 +289,12 @@ void SQLTransaction::executeSQL(const String& sqlStatement, const Vector<SQLValu
|
| permissions |= DatabaseAuthorizer::ReadOnlyMask;
|
|
|
| SQLStatement* statement = SQLStatement::create(m_database.get(), callback, callbackError);
|
| - m_backend->executeSQL(statement, sqlStatement, arguments, permissions);
|
| + m_backend->executeSQL(statement, sqlStatement, toSQLValueArray(arguments), permissions);
|
| +}
|
| +
|
| +void SQLTransaction::executeSql(const String& sqlStatement, ExceptionState& exceptionState)
|
| +{
|
| + executeSql(sqlStatement, Vector<ScriptValue>(), nullptr, nullptr, exceptionState);
|
| }
|
|
|
| bool SQLTransaction::computeNextStateAndCleanupIfNeeded()
|
|
|