| 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()); |
| 44 } | 45 } |
| 45 | 46 |
| 46 DEFINE_TRACE(SQLResultSet) | 47 DEFINE_TRACE(SQLResultSet) |
| 47 { | 48 { |
| 48 visitor->trace(m_rows); | 49 visitor->trace(m_rows); |
| 49 } | 50 } |
| 50 | 51 |
| 51 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const | 52 int64_t SQLResultSet::insertId(ExceptionState& exceptionState) const |
| 52 { | 53 { |
| 53 // 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... |
| 77 m_insertIdSet = true; | 78 m_insertIdSet = true; |
| 78 } | 79 } |
| 79 | 80 |
| 80 void SQLResultSet::setRowsAffected(int count) | 81 void SQLResultSet::setRowsAffected(int count) |
| 81 { | 82 { |
| 82 m_rowsAffected = count; | 83 m_rowsAffected = count; |
| 83 m_isValid = true; | 84 m_isValid = true; |
| 84 } | 85 } |
| 85 | 86 |
| 86 } // namespace blink | 87 } // namespace blink |
| OLD | NEW |