cockroachdb / cockroachdb/activerecord-cockroachdb-adapter

Numeric types have improper scale

Abierto
#178 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Ruby
Estrellas
105
Forks
56
Merge medio
9 h 5 min
PR fusionados (30 d)
3

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.