0

I use the below code to get a value from a recordset in sqlite:

let colSQL0 = sqlite3_column_text(compiledStatement, 0)
let value = String(cString: UnsafePointer<CChar>(colSQL0!))

that is working fine, but now in Swift 3 appears the following error getting the value:

error: 'init' is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily

any suggestion? thank you in advance...

jankoesp
  • 21
  • 5

0 Answers0