@@ -35,7 +35,7 @@ class CustomAggregationTests: SQLiteTestCase {
3535 p. deallocate ( )
3636 return v
3737 }
38- _ = db. createAggregation ( " mySUM1 " , step: step, final: final) {
38+ db. createAggregation ( " mySUM1 " , step: step, final: final) {
3939 let v = UnsafeMutableBufferPointer< Int64> . allocate( capacity: 1 )
4040 v [ 0 ] = 0
4141 return v. baseAddress!
@@ -60,7 +60,7 @@ class CustomAggregationTests: SQLiteTestCase {
6060 p. deallocate ( )
6161 return v
6262 }
63- _ = db. createAggregation ( " mySUM2 " , step: step, final: final) {
63+ db. createAggregation ( " mySUM2 " , step: step, final: final) {
6464 let v = UnsafeMutableBufferPointer< Int64> . allocate( capacity: 1 )
6565 v [ 0 ] = 0
6666 return v. baseAddress!
@@ -76,7 +76,7 @@ class CustomAggregationTests: SQLiteTestCase {
7676 let v = ( bindings [ 0 ] as? Int64 ) ?? 0
7777 return last + v
7878 }
79- _ = db. createAggregation ( " myReduceSUM1 " , initialValue: Int64 ( 2000 ) , reduce: reduce, result: { $0 } )
79+ db. createAggregation ( " myReduceSUM1 " , initialValue: Int64 ( 2000 ) , reduce: reduce, result: { $0 } )
8080 let result = try ! db. prepare ( " SELECT myReduceSUM1(age) AS s FROM users " )
8181 let i = result. columnNames. firstIndex ( of: " s " ) !
8282 for row in result {
@@ -90,7 +90,7 @@ class CustomAggregationTests: SQLiteTestCase {
9090 let v = ( bindings [ 0 ] as? Int64 ) ?? 0
9191 return last + v
9292 }
93- _ = db. createAggregation ( " myReduceSUM2 " , initialValue: Int64 ( 3000 ) , reduce: reduce, result: { $0 } )
93+ db. createAggregation ( " myReduceSUM2 " , initialValue: Int64 ( 3000 ) , reduce: reduce, result: { $0 } )
9494 let result = try ! db. prepare ( " SELECT myReduceSUM2(age) AS s FROM users GROUP BY admin ORDER BY s " )
9595 let i = result. columnNames. firstIndex ( of: " s " ) !
9696 let values = result. compactMap { $0 [ i] as? Int64 }
@@ -103,7 +103,7 @@ class CustomAggregationTests: SQLiteTestCase {
103103 let v = ( bindings [ 0 ] as? String ) ?? " "
104104 return last + v
105105 }
106- _ = db. createAggregation ( " myReduceSUM3 " , initialValue: initial, reduce: reduce, result: { $0 } )
106+ db. createAggregation ( " myReduceSUM3 " , initialValue: initial, reduce: reduce, result: { $0 } )
107107 let result = try ! db. prepare ( " SELECT myReduceSUM3(email) AS s FROM users " )
108108 let i = result. columnNames. firstIndex ( of: " s " ) !
109109 for row in result {
0 commit comments