Skip to content

query.sum() should be generic #50

@MihaelIsaev

Description

@MihaelIsaev

Trying to get sum of money movements by calling

MoneyMovement.query(on: conn).sum(\MoneyMovement.quantity).flatMap { sumOfIncomes -> EventLoopFuture<Int64> in
    //somehow `sumOfIncomes` is Double, that's strange because `MoneyMovement.quantity` is Int64
}

but getting error

[ ERROR ] PostgreSQLError.binaryFloatingPoint: Could not decode Double from binary data type: NUMERIC.

2018-05-08 21 49 56

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions