Skip to content

Commit d51a71a

Browse files
committed
add test for inet value
1 parent 7cc033a commit d51a71a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

adapter/postgresql/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DB_NAME ?= upperio
1111
DB_USERNAME ?= upperio_user
1212
DB_PASSWORD ?= upperio//s3cr37
1313

14-
TEST_FLAGS ?=
14+
TEST_FLAGS ?= -v -failfast
1515
PARALLEL_FLAGS ?= --halt-on-error 2 --jobs 1
1616

1717
export POSTGRES_VERSION

adapter/postgresql/helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func (h *Helper) TearUp() error {
239239
, decimal_value_ptr decimal
240240
241241
, uuid_value_string UUID
242-
242+
, ip_addr_ptr inet null
243243
)`,
244244

245245
`DROP TABLE IF EXISTS issue_370`,

adapter/postgresql/postgresql_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"encoding/json"
2929
"fmt"
3030
"math/rand"
31+
"net"
3132
"strings"
3233
"sync"
3334
"testing"
@@ -266,6 +267,8 @@ func testPostgreSQLTypes(t *testing.T, sess db.Session) {
266267
DecimalValuePtr *float64 `db:"decimal_value_ptr,omitempty"`
267268

268269
UUIDValueString *string `db:"uuid_value_string,omitempty"`
270+
271+
IPAddrPtr *net.IPNet `db:"ip_addr_ptr,omitempty"`
269272
}
270273

271274
integerValue := int64(10)

0 commit comments

Comments
 (0)