Fixed CREATE DATABASE query

This commit is contained in:
Sergey Kurt 2017-03-19 00:02:14 +03:00
parent ff5957e4e8
commit e6c6056353

View file

@ -66,7 +66,9 @@ func (m *mssqlTester) sslMode(mode string) string {
}
func (m *mssqlTester) createTestDB() error {
sql := fmt.Sprintf("create database %s;", m.testDBName)
sql := fmt.Sprintf(`
CREATE DATABASE %s;
GO`, m.testDBName)
return m.runCmd(sql, "sqlcmd", "-S", m.host, "-U", m.user, "-P", m.pass)
}