select null management
This commit is contained in:
parent
d99db63940
commit
85d2790bb2
1
pg.go
1
pg.go
@ -527,5 +527,4 @@ func FormatForSQL(datatype string, value interface{}) string {
|
|||||||
return fmt.Sprint(pq.QuoteLiteral(strval))
|
return fmt.Sprint(pq.QuoteLiteral(strval))
|
||||||
}
|
}
|
||||||
return fmt.Sprint(strval)
|
return fmt.Sprint(strval)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ func TestCreateTable(t *testing.T) {
|
|||||||
db := Open("postgres", "host=127.0.0.1 port=5432 user=test password=test dbname=test sslmode=disable")
|
db := Open("postgres", "host=127.0.0.1 port=5432 user=test password=test dbname=test sslmode=disable")
|
||||||
defer db.Close()
|
defer db.Close()
|
||||||
|
|
||||||
jsonFile, err := os.Open("testtype_table.json")
|
jsonFile, err := os.Open("test_table.json")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user