🐛 fix(sqlserver): 避免 DDL 查看伪成功

This commit is contained in:
Kunghim
2026-08-09 13:32:51 +08:00
parent 16a601e6a4
commit 52488cf3f7
9 changed files with 21 additions and 2 deletions

View File

@@ -530,7 +530,7 @@ ORDER BY s.name, t.name`, safeDB, safeDB)
}
func (s *SqlServerDB) GetCreateStatement(dbName, tableName string) (string, error) {
return fmt.Sprintf("-- SHOW CREATE TABLE not supported for SQL Server in this version.\n-- Table: %s.%s", dbName, tableName), nil
return "", localizedDatabaseRuntimeError("db.backend.error.sqlserver_create_statement_unsupported", nil)
}
func (s *SqlServerDB) GetColumns(dbName, tableName string) ([]connection.ColumnDefinition, error) {