OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 15 matching lines...) Expand all Loading... |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "modules/webdatabase/SQLResultSet.h" | 30 #include "modules/webdatabase/SQLResultSet.h" |
31 | 31 |
32 #include "bindings/core/v8/ExceptionState.h" | 32 #include "bindings/core/v8/ExceptionState.h" |
33 #include "core/dom/ExceptionCode.h" | 33 #include "core/dom/ExceptionCode.h" |
34 #include "platform/heap/Handle.h" | 34 #include "platform/heap/Handle.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 | 37 |
38 SQLResultSet::SQLResultSet() | 38 SQLResultSet::SQLResultSet() |
39 : m_rows(SQLResultSetRowList::create()) | 39 : m_rows(SQLResultSetRowList::create()) |
40 , m_insertId(0) | 40 , m_insertId(0) |
41 , m_rowsAffected(0) | 41 , m_rowsAffected(0) |
42 , m_insertIdSet(false) | 42 , m_insertIdSet(false) |
43 , m_isValid(false) | 43 , m_isValid(false) |
44 { | 44 { |
45 ScriptWrappable::init(this); | 45 ScriptWrappable::init(this); |
46 } | 46 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 m_insertIdSet = true; | 79 m_insertIdSet = true; |
80 } | 80 } |
81 | 81 |
82 void SQLResultSet::setRowsAffected(int count) | 82 void SQLResultSet::setRowsAffected(int count) |
83 { | 83 { |
84 m_rowsAffected = count; | 84 m_rowsAffected = count; |
85 m_isValid = true; | 85 m_isValid = true; |
86 } | 86 } |
87 | 87 |
88 } | 88 } |
OLD | NEW |