Fixed CREATE DATABASE query
This commit is contained in:
parent
ff5957e4e8
commit
e6c6056353
1 changed files with 3 additions and 1 deletions
|
@ -66,7 +66,9 @@ func (m *mssqlTester) sslMode(mode string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *mssqlTester) createTestDB() error {
|
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)
|
return m.runCmd(sql, "sqlcmd", "-S", m.host, "-U", m.user, "-P", m.pass)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue