| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 namespace blink { | 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); | |
| 46 } | 45 } |
| 47 | 46 |
| 48 void SQLResultSet::trace(Visitor* visitor) | 47 void SQLResultSet::trace(Visitor* visitor) |
| 49 { | 48 { |
| 50 visitor->trace(m_rows); | 49 visitor->trace(m_rows); |
| 51 } | 50 } |
| 52 | 51 |
| 53 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const | 52 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const |
| 54 { | 53 { |
| 55 // 4.11.4 - Return the id of the last row inserted as a result of the query | 54 // 4.11.4 - Return the id of the last row inserted as a result of the query |
| (...skipping 23 matching lines...) Expand all Loading... |
| 79 m_insertIdSet = true; | 78 m_insertIdSet = true; |
| 80 } | 79 } |
| 81 | 80 |
| 82 void SQLResultSet::setRowsAffected(int count) | 81 void SQLResultSet::setRowsAffected(int count) |
| 83 { | 82 { |
| 84 m_rowsAffected = count; | 83 m_rowsAffected = count; |
| 85 m_isValid = true; | 84 m_isValid = true; |
| 86 } | 85 } |
| 87 | 86 |
| 88 } | 87 } |
| OLD | NEW |