Skip to content

Commit

Permalink
changed registry of system catalog view to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Trutnev committed Jun 16, 2021
1 parent cfd6a61 commit 6c717e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/databases/sqlserver/sqlserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func getDatabasesToRestore(sentinel *SentinelDto, dbnames []string, fromnames []
}

func listDatabases(db *sql.DB) ([]string, error) {
rows, err := db.Query("SELECT name FROM SYS.DATABASES WHERE name != 'tempdb'")
rows, err := db.Query("SELECT name FROM sys.databases WHERE name != 'tempdb'")
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 6c717e9

Please sign in to comment.