stephencelis/SQLite.swift

Numeric Type Column

Open

#331 aberto em 19 de jan. de 2016

Ver no GitHub
 (12 comments) (0 reactions) (0 assignees)Swift (1.618 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (10.145 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (4 fundiu PRs em 30d)

Description

update my table.

let x = Expression<Double>("x")

let db = try! Connection(dbFilePath)
let tbl = Table("test")

let dX: Double = 2000
try! db.run(tel.update(x <- dX))

update is success.

but select updated table is failure

for row in try! db.prepare(tbl.select(x)) {
    print(row[x])
}

error occurred.

fatal error: unexpectedly found nil while unwrapping an Optional value

Query.swift  line: 1025
        guard let value = values[idx] as? V.Datatype else { return nil }

please help!

Guia do colaborador