 		}
 		paramsString.append(String(describing: idValue))
 
-		let str = "UPDATE \(self.table) SET \(set.joined(separator: ", ")) WHERE \(idName) = $\(params.count+1)"
+		let str = "UPDATE \(self.table()) SET \(set.joined(separator: ", ")) WHERE \(idName) = $\(params.count+1)"
 
 		do {
 			try exec(str, params: paramsString)

		return true
	}


	public func update(data: [(String, Any)],idName: String = "id", idValue: Any) throws -> Bool {

		var keys = [String]()
		var vals = [String]()


extension PostgresStORM {

	@discardableResult
	public func update(cols: [String], params: [Any], idName: String, idValue: Any) throws -> Bool {

		var paramsString = [String]()
