Skip to content

sql: add support for decimal arithmetic #1618

Closed
@petermattis

Description

@petermattis

There are several Go decimal arithmetic libraries to choose from:

These libraries all have essentially the same implementation which is to use math/big.Int for the integer value and keep a separate scale int parameter. The values are thus represented as unscaled * 10**(-scale).

Metadata

Metadata

Labels

A-sql-semanticsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions