select null management

This commit is contained in:
ycc 2022-05-20 11:00:14 +02:00
parent d99db63940
commit 85d2790bb2
2 changed files with 1 additions and 2 deletions

1
pg.go
View File

@ -527,5 +527,4 @@ func FormatForSQL(datatype string, value interface{}) string {
return fmt.Sprint(pq.QuoteLiteral(strval))
}
return fmt.Sprint(strval)
}

View File

@ -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")
defer db.Close()
jsonFile, err := os.Open("testtype_table.json")
jsonFile, err := os.Open("test_table.json")
if err != nil {
fmt.Println(err)
}