nakagami / firebirdsql

Firebird RDBMS sql driver for Go (golang)
MIT License
227 stars 60 forks source link

Selecting DECIMAL always returns 0 #37

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi,

rows, _ := conn.Query("SELECT DEC FROM MYTABLE")
for rows.Next() {
    var dec sql.NullFloat64
    rows.Scan(&dec)
    fmt.Println(dec)
}

output: {0 true}

Firebird 2.1.2 (Windows)

Am I doing it wrong?

nakagami commented 7 years ago

Sorry, something wrong. Wait