Better compilation time

This commit is contained in:
Gwendal Roué committed 2016-08-07 15:26:30 +02:00
1 parent 7d6fcda03e
commit 76ab3fd1ab
1 file changed
+1 -1
+1 -1
View File
@@ -217,7 +217,7 @@ public final class SelectStatement : Statement {
/// The column names, ordered from left to right.
public lazy var columnNames: [String] = {
let sqliteStatement = self.sqliteStatement
return (0..<self.columnCount).map { String.fromCString(sqlite3_column_name(sqliteStatement, Int32($0)))! }
return (0..<self.columnCount).map { (index: Int) -> String in String.fromCString(sqlite3_column_name(sqliteStatement, Int32(index)))! }
}()
/// Cache for indexOfColumn(). Keys are lowercase.