mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
fix schema compare dropdown not selecting correct db when multiple active connections (#14999) (#15012)
* fix schema compare dropdown not selecting correct db when multiple active connections * fix when no username so default is used
This commit is contained in:
@@ -91,9 +91,14 @@ export class SchemaCompareMainWindow {
|
|||||||
let sourceDacpac = context as string;
|
let sourceDacpac = context as string;
|
||||||
if (profile) {
|
if (profile) {
|
||||||
let ownerUri = await azdata.connection.getUriForConnection((profile.id));
|
let ownerUri = await azdata.connection.getUriForConnection((profile.id));
|
||||||
|
let usr = profile.userName;
|
||||||
|
if (!usr) {
|
||||||
|
usr = loc.defaultText;
|
||||||
|
}
|
||||||
|
|
||||||
this.sourceEndpointInfo = {
|
this.sourceEndpointInfo = {
|
||||||
endpointType: mssql.SchemaCompareEndpointType.Database,
|
endpointType: mssql.SchemaCompareEndpointType.Database,
|
||||||
serverDisplayName: `${profile.serverName} ${profile.userName}`,
|
serverDisplayName: `${profile.serverName} (${usr})`,
|
||||||
serverName: profile.serverName,
|
serverName: profile.serverName,
|
||||||
databaseName: profile.databaseName,
|
databaseName: profile.databaseName,
|
||||||
ownerUri: ownerUri,
|
ownerUri: ownerUri,
|
||||||
|
|||||||
Reference in New Issue
Block a user