Upgrade SQLite.swift

This commit is contained in:
Gwendal Roué committed 2016-01-10 19:59:26 +01:00
1 parent 20d8b00ccf
commit edf6fd8a20
5 files changed
+5 -5

No files matched your search

@@ -72,7 +72,7 @@ class FetchNamedValuesTests: XCTestCase {
self.measureBlock {
var count = 0
for item in db.prepare(itemsTable) {
for item in try! db.prepare(itemsTable) {
let _ = item[i0Column]
let _ = item[i1Column]
let _ = item[i2Column]
@@ -113,7 +113,7 @@ class FetchPositionalValuesTests: XCTestCase {
self.measureBlock {
var count = 0
for row in db.prepare("SELECT * FROM items") {
for row in try! db.prepare("SELECT * FROM items") {
// Direct Int extraction is not supported.
let _ = Int(row[0] as! Int64)
let _ = Int(row[1] as! Int64)
@@ -108,7 +108,7 @@ class FetchRecordTests: XCTestCase {
self.measureBlock {
var items = [Item]()
for row in db.prepare(itemsTable) {
for row in try! db.prepare(itemsTable) {
let item = Item(
i0: row[i0Column],
i1: row[i1Column],
@@ -142,7 +142,7 @@ class InsertPositionalValuesTests: XCTestCase {
})
try! db.transaction {
let stmt = db.prepare("INSERT INTO items (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9) VALUES (?,?,?,?,?,?,?,?,?,?)")
let stmt = try! db.prepare("INSERT INTO items (i0, i1, i2, i3, i4, i5, i6, i7, i8, i9) VALUES (?,?,?,?,?,?,?,?,?,?)")
for i in 0..<insertedRowCount {
try stmt.run(i, i, i, i, i, i, i, i, i, i)
}