This code result in only one digit being returnem from sql server in column.value. Is there and error in my swift understanding or something with library?
override func viewDidLoad() {
super.viewDidLoad()
let client = SQLClient.sharedInstance()
client?.connect(Constants.serwerAdress, username: Constants.userName, password: Constants.password, database: Constants.databaseName) {
success in
if success {
client?.execute("select A FROM B") {
results in
for table in results as AnyObject! as! NSArray {
for row in table as AnyObject! as! NSArray {
for column in row as! NSDictionary {
print("\(column.key) = \(column.value)")
}
}
}
client?.disconnect()
DoSomethingElse()
}
}
}
}
This code result in only one digit being returnem from sql server in column.value. Is there and error in my swift understanding or something with library?