mattn / go-oci8

Oracle driver for Go using database/sql
https://mattn.kaoriya.net/
MIT License
630 stars 212 forks source link

function ColumnTypeScanType(i int) case C.SQLT_NUM return int64 cause scan failed #280

Closed eyeits closed 5 years ago

eyeits commented 5 years ago

function ColumnTypeScanType(i int) case C.SQLT_NUM return int64 cause scan failed, the actual value is float64 type. Can C.SQLT_NUM database type return to golang float64 type?

MichaelS11 commented 5 years ago

What would a create table look like for a SQLT_NUM number type?

eyeits commented 5 years ago

round function sometimes return SQLT_NUM

MichaelS11 commented 5 years ago

Do you have a test case/code/SQL to reproduce this issue? Otherwise doubtful I would be able to fix it.

MichaelS11 commented 5 years ago

Close this?

eyeits commented 5 years ago

close