Skip to content

Commit b01bc25

Browse files
committed
新增阿里云rds判断
1 parent 0921752 commit b01bc25

File tree

1 file changed

+2
-2
lines changed
  • goinsight/internal/orders/api/mysql

1 file changed

+2
-2
lines changed

goinsight/internal/orders/api/mysql/ddl.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ func (e *ExecuteMySQLDDL) ExecuteDDLWithGhost(sql string) (data base.ReturnData,
162162
}
163163

164164
if strings.Contains(e.Hostname, "rds.aliyuncs.com") {
165-
ghostCMDParts = append(ghostCMDParts, "--aliyun-rds=true")
166-
ghostCMDParts = append(ghostCMDParts, fmt.Sprintf("--assume-master-host=%s", e.Hostname))
165+
ghostCMDParts = append(ghostCMDParts, "-aliyun-rds=true")
166+
ghostCMDParts = append(ghostCMDParts, fmt.Sprintf("-assume-master-host=\"%s\"", e.Hostname))
167167
}
168168

169169
ghostCMD := strings.Join(ghostCMDParts, " ")

0 commit comments

Comments
 (0)