Index: Source/modules/webdatabase/SQLTransaction.cpp |
diff --git a/Source/modules/webdatabase/SQLTransaction.cpp b/Source/modules/webdatabase/SQLTransaction.cpp |
index 31a6605d36e5dd9e5d4f14ee97032f92a789056c..eb9779a22a09a4df2ea0f765ac1257b3f367c52b 100644 |
--- a/Source/modules/webdatabase/SQLTransaction.cpp |
+++ b/Source/modules/webdatabase/SQLTransaction.cpp |
@@ -291,6 +291,19 @@ void SQLTransaction::executeSQL(const String& sqlStatement, const Vector<SQLValu |
m_backend->executeSQL(statement, sqlStatement, arguments, permissions); |
} |
+void SQLTransaction::executeSql(ScriptState* scriptState, const String& sqlStatement, ExceptionState& exceptionState) |
+{ |
+ executeSQL(sqlStatement, Vector<SQLValue>(), nullptr, nullptr, exceptionState); |
+} |
+ |
+void SQLTransaction::executeSql(ScriptState* scriptState, const String& sqlStatement, const Nullable<Vector<ScriptValue>>& arguments, SQLStatementCallback* callback, SQLStatementErrorCallback* callbackError, ExceptionState& exceptionState) |
+{ |
+ Vector<SQLValue> sqlValues; |
+ if (!arguments.isNull()) |
+ sqlValues = toImplArray<SQLValue>(arguments.get(), scriptState->isolate(), exceptionState); |
+ executeSQL(sqlStatement, sqlValues, callback, callbackError, exceptionState); |
+} |
+ |
bool SQLTransaction::computeNextStateAndCleanupIfNeeded() |
{ |
// Only honor the requested state transition if we're not supposed to be |