Skip to content

Support ALL Postgres Numeric types. Decimal and Numeric are unsupported #533

@samjewell

Description

@samjewell

What version of Chai are you using?

$ chai version
v0.16.0

What did you do?

I tried to create a table:

db.Exec(`CREATE TABLE metrics (BillableSeries DECIMAL, Month TEXT)`)

And got an error:

failed to create table: found DECIMAL, expected ) at line 1, char 38

What did you expect to see?

The Docs say:

ChaiSQL SQL API is compatible with PostgreSQL

So I expected all the Postgres Numeric types to be supported:

smallint
integer
bigint
decimal
numeric
real
double
smallserial
serial
bigserial

But only a fraction of these are actually supported. I know that at least these are not supported:

DECIMAL
NUMERIC

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions