| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 namespace blink { | 35 namespace blink { |
| 36 | 36 |
| 37 SQLResultSet::SQLResultSet() | 37 SQLResultSet::SQLResultSet() |
| 38 : m_rows(SQLResultSetRowList::create()) | 38 : m_rows(SQLResultSetRowList::create()) |
| 39 , m_insertId(0) | 39 , m_insertId(0) |
| 40 , m_rowsAffected(0) | 40 , m_rowsAffected(0) |
| 41 , m_insertIdSet(false) | 41 , m_insertIdSet(false) |
| 42 , m_isValid(false) | 42 , m_isValid(false) |
| 43 { | 43 { |
| 44 DCHECK(isMainThread()); | |
| 45 } | 44 } |
| 46 | 45 |
| 47 DEFINE_TRACE(SQLResultSet) | 46 DEFINE_TRACE(SQLResultSet) |
| 48 { | 47 { |
| 49 visitor->trace(m_rows); | 48 visitor->trace(m_rows); |
| 50 } | 49 } |
| 51 | 50 |
| 52 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const | 51 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const |
| 53 { | 52 { |
| 54 // 4.11.4 - Return the id of the last row inserted as a result of the query | 53 // 4.11.4 - Return the id of the last row inserted as a result of the query |
| (...skipping 23 matching lines...) Expand all Loading... |
| 78 m_insertIdSet = true; | 77 m_insertIdSet = true; |
| 79 } | 78 } |
| 80 | 79 |
| 81 void SQLResultSet::setRowsAffected(int count) | 80 void SQLResultSet::setRowsAffected(int count) |
| 82 { | 81 { |
| 83 m_rowsAffected = count; | 82 m_rowsAffected = count; |
| 84 m_isValid = true; | 83 m_isValid = true; |
| 85 } | 84 } |
| 86 | 85 |
| 87 } // namespace blink | 86 } // namespace blink |
| OLD | NEW |