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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 int SQLResultSet::rowsAffected() const { | 62 int SQLResultSet::rowsAffected() const { |
63 return rows_affected_; | 63 return rows_affected_; |
64 } | 64 } |
65 | 65 |
66 SQLResultSetRowList* SQLResultSet::rows() const { | 66 SQLResultSetRowList* SQLResultSet::rows() const { |
67 return rows_.Get(); | 67 return rows_.Get(); |
68 } | 68 } |
69 | 69 |
70 void SQLResultSet::SetInsertId(int64_t id) { | 70 void SQLResultSet::SetInsertId(int64_t id) { |
71 ASSERT(!insert_id_set_); | 71 DCHECK(!insert_id_set_); |
72 | 72 |
73 insert_id_ = id; | 73 insert_id_ = id; |
74 insert_id_set_ = true; | 74 insert_id_set_ = true; |
75 } | 75 } |
76 | 76 |
77 void SQLResultSet::SetRowsAffected(int count) { | 77 void SQLResultSet::SetRowsAffected(int count) { |
78 rows_affected_ = count; | 78 rows_affected_ = count; |
79 is_valid_ = true; | 79 is_valid_ = true; |
80 } | 80 } |
81 | 81 |
82 } // namespace blink | 82 } // namespace blink |
OLD | NEW |