cockroachdb / cockroachdb/activerecord-cockroachdb-adapter

Numeric types have improper scale

Aperta
#178 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Ruby
Stelle
105
Fork
56
Merge medio
9h 5m
PR unite (30g)
3

Descrizione

In Postgres/CockroachDB if a column is defined with just precision and no scale, the scale is assumed to be 0 (ex. `NUMERIC(10)` -> `NUMERIC(10,0)`), but ActiveRecord treats this as a NUMERIC without scale defined, which means it can have digits to the right of the decimal place.

We are going to match the ActiveRecord behavior, but use this to track it and check if the behavior changes eventually.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.