We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 180335e commit d3900dbCopy full SHA for d3900db
internal/core/gen.go
@@ -173,6 +173,9 @@ func jdbcGet(t ktType, idx int) string {
173
}
174
return fmt.Sprintf(`results.getObject(%d) as%s %s`, idx, nullCast, t.Name)
175
176
+ if t.IsBigDecimal() {
177
+ return fmt.Sprintf(`results.getBigDecimal(%d)`, idx)
178
+ }
179
return fmt.Sprintf(`results.get%s(%d)`, t.Name, idx)
180
181
@@ -364,6 +367,10 @@ func (t ktType) IsUUID() bool {
364
367
return t.Name == "UUID"
365
368
366
369
370
+func (t ktType) IsBigDecimal() bool {
371
+ return t.Name == "java.math.BigDecimal"
372
+}
373
+
374
func makeType(req *plugin.GenerateRequest, col *plugin.Column) ktType {
375
typ, isEnum := ktInnerType(req, col)
376
return ktType{
0 commit comments