From 85d2790bb2f4e575440fc5700d3a4a6425ac68d7 Mon Sep 17 00:00:00 2001 From: ycc Date: Fri, 20 May 2022 11:00:14 +0200 Subject: [PATCH] select null management --- pg.go | 1 - pg_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pg.go b/pg.go index fa99502..c574a8b 100755 --- a/pg.go +++ b/pg.go @@ -527,5 +527,4 @@ func FormatForSQL(datatype string, value interface{}) string { return fmt.Sprint(pq.QuoteLiteral(strval)) } return fmt.Sprint(strval) - } diff --git a/pg_test.go b/pg_test.go index fb8a187..61aa8d1 100755 --- a/pg_test.go +++ b/pg_test.go @@ -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) }