Index: Source/modules/webdatabase/SQLResultSet.cpp |
diff --git a/Source/modules/webdatabase/SQLResultSet.cpp b/Source/modules/webdatabase/SQLResultSet.cpp |
index b467578e6675a4bc998f2629ea6d6ecaedd2195e..0a76d07fc9bc05541dc141908f89b813fd84c4a5 100644 |
--- a/Source/modules/webdatabase/SQLResultSet.cpp |
+++ b/Source/modules/webdatabase/SQLResultSet.cpp |
@@ -31,18 +31,25 @@ |
#include "bindings/v8/ExceptionState.h" |
#include "core/dom/ExceptionCode.h" |
+#include "heap/Handle.h" |
namespace WebCore { |
SQLResultSet::SQLResultSet() |
: m_rows(SQLResultSetRowList::create()) |
, m_insertId(0) |
- , m_insertIdSet(false) |
, m_rowsAffected(0) |
+ , m_insertIdSet(false) |
+ , m_isValid(false) |
{ |
ScriptWrappable::init(this); |
} |
+void SQLResultSet::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_rows); |
+} |
+ |
int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const |
{ |
// 4.11.4 - Return the id of the last row inserted as a result of the query |
@@ -75,6 +82,7 @@ void SQLResultSet::setInsertId(int64_t id) |
void SQLResultSet::setRowsAffected(int count) |
{ |
m_rowsAffected = count; |
+ m_isValid = true; |
} |
} |