sqlc-dev/sqlc-gen-kotlin

The retrieval of the decimal column is becoming results.getjava.math.BigDecimal()

Toru-Takagi opened this issue · 0 comments

When creating a decimal(19, 4) column in PostgreSQL, it generates a data class with a property of type java.math.BigDecimal? .

However, when generating a query for a table with this column, the code results.getjava.math.BigDecimal() is produced. It seems that the correct code should be results.getBigDecimal() .