cockroachdb / cockroachdb/activerecord-cockroachdb-adapter

Numeric types have improper scale

Ouverte
#178 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Ruby
Étoiles
105
Forks
56
Merge moyen
9 h 5 min
PR mergées (30 j)
3

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.