SchemaTable with MSSQL support
This commit is contained in:
parent
132339026a
commit
54af37ef9a
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ func init() {
|
|||
// for Postgres: "schema_name"."table_name", versus
|
||||
// simply "table_name" for MySQL (because it does not support real schemas)
|
||||
func SchemaTable(lq, rq string, driver string, schema string, table string) string {
|
||||
if driver == "postgres" && schema != "public" {
|
||||
if (driver == "postgres" && schema != "public") || driver == "mssql" {
|
||||
return fmt.Sprintf(`%s%s%s.%s%s%s`, lq, schema, rq, lq, table, rq)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue