Skip to content

Instantly share code, notes, and snippets.

@umisama
Last active August 29, 2015 14:00
Show Gist options
  • Save umisama/11363587 to your computer and use it in GitHub Desktop.
Save umisama/11363587 to your computer and use it in GitHub Desktop.
genmai panic on select query with genmai.Float64.
package main
import (
"fmt"
_ "github.com/mattn/go-sqlite3"
"github.com/umisama/genmai"
)
type TestData struct {
Xxx genmai.Float64
}
func main() {
db, _ := genmai.New(&genmai.SQLite3Dialect{}, ":memory:")
db.CreateTableIfNotExists(&TestData{})
db.Insert(&TestData{0.0})
obj := make([]TestData, 0)
err := db.Select(&obj)
if err != nil {
fmt.Println(err)
return
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment