Merge branch 'master' into master

This commit is contained in:
biless 2017-05-17 16:22:46 +08:00 committed by GitHub
commit 0e3ffe5f29
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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))