Skip to content

Commit

Permalink
add test for inet value
Browse files Browse the repository at this point in the history
  • Loading branch information
xiam committed Aug 26, 2024
1 parent 7cc033a commit d51a71a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adapter/postgresql/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ DB_NAME ?= upperio
DB_USERNAME ?= upperio_user
DB_PASSWORD ?= upperio//s3cr37

TEST_FLAGS ?=
TEST_FLAGS ?= -v -failfast
PARALLEL_FLAGS ?= --halt-on-error 2 --jobs 1

export POSTGRES_VERSION
Expand Down
2 changes: 1 addition & 1 deletion adapter/postgresql/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (h *Helper) TearUp() error {
, decimal_value_ptr decimal
, uuid_value_string UUID
, ip_addr_ptr inet null
)`,

`DROP TABLE IF EXISTS issue_370`,
Expand Down
3 changes: 3 additions & 0 deletions adapter/postgresql/postgresql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"encoding/json"
"fmt"
"math/rand"
"net"
"strings"
"sync"
"testing"
Expand Down Expand Up @@ -266,6 +267,8 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) {
DecimalValuePtr *float64 `db:"decimal_value_ptr,omitempty"`

UUIDValueString *string `db:"uuid_value_string,omitempty"`

IPAddrPtr *net.IPNet `db:"ip_addr_ptr,omitempty"`
}

integerValue := int64(10)
Expand Down

0 comments on commit d51a71a

Please sign in to comment.