diff --git a/circle.yml b/circle.yml index 5c4ab0b0..27f7f98a 100644 --- a/circle.yml +++ b/circle.yml @@ -22,6 +22,8 @@ test: override: # './...' is a relative pattern which means all subdirectories - go test -v -race + - go test -db=mysql -conn_str="root:@/xorm_test" + - go test -db=postgres -conn_str="dbname=xorm_test sslmode=disable" - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./sqlite3.sh - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./mysql.sh - cd /home/ubuntu/.go_workspace/src/github.com/go-xorm/tests && ./postgres.sh \ No newline at end of file diff --git a/types_test.go b/types_test.go index f5a51679..900dac90 100644 --- a/types_test.go +++ b/types_test.go @@ -77,7 +77,7 @@ func TestGetBytes(t *testing.T) { assert.NoError(t, prepareEngine()) type Varbinary struct { - Data []byte `xorm:"VARBINARY"` + Data []byte `xorm:"VARBINARY(250)"` } err := testEngine.Sync2(new(Varbinary))