diff --git a/GRDB/Core/Row.swift b/GRDB/Core/Row.swift index 5f58d41a9..a5db0a01f 100644 --- a/GRDB/Core/Row.swift +++ b/GRDB/Core/Row.swift @@ -409,9 +409,7 @@ public final class Row: CollectionType { // MARK: - Row as a Collection of (ColumnName, DatabaseValue) Pairs /// The number of columns in the row. - public var count: Int { - return impl.count - } + public lazy var count: Int = { self.impl.count }() /// The names of columns in the row. ///