diff --git a/db.go b/db.go index efe7485..11f5fba 100755 --- a/db.go +++ b/db.go @@ -158,7 +158,7 @@ func (db *Db) QueryAssociativeArray(query string) (Rows, error) { if reflect.ValueOf(val).IsNil() { m[colName] = nil } else { - fmt.Printf("Unknow type : %s", columnType[colName]) + fmt.Printf("Unknow type : %s (%s)\n", columnType[colName], query) m[colName] = fmt.Sprintf("%v", *val) } } diff --git a/pg_test.go b/pg_test.go index 11317cb..eaa2b06 100755 --- a/pg_test.go +++ b/pg_test.go @@ -11,7 +11,7 @@ func TestPgCreateTable(t *testing.T) { db := Open("postgres", "host=127.0.0.1 port=5432 user=test password=test dbname=test sslmode=disable") defer db.Close() - byteValue, _ := os.ReadFile("test_table.json") + byteValue, _ := os.ReadFile("testtype_table.json") var jsonSource TableInfo json.Unmarshal([]byte(byteValue), &jsonSource)