stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.73k stars 1.57k forks source link

Cannot convert value of type 'Expression<String>' to expected argument type 'String?' #858

Closed sourabhsriom closed 3 years ago

sourabhsriom commented 5 years ago

I am using the filter option get a variable I need to pass to a label as its text.

let naam = bowlersTable.filter(self.name == bowler)
let bowlerName = (naam[name])
self.BowlerName.setText(bowlerName)

I get the error saying :

Cannot convert value of type 'Expression<String>' to expected argument type 'String?'

How do we change the column type to a string?

jberkel commented 3 years ago

please use stackoverflow