fix select top 1000 issue for Synapse (#20857)

This commit is contained in:
Alan Ren
2022-10-15 10:40:29 -07:00
committed by GitHub
parent 5d731fe0ad
commit 484fbe836d
2 changed files with 3 additions and 4 deletions

View File

@@ -38,7 +38,6 @@ const targetDatabaseEngineEditionMap = {
};
const ScriptingFailedDialogTitle = nls.localize('scriptingFailed', "Scripting Failed");
const SelectScriptNotGeneratedError = nls.localize('selectScriptNotGeneratedError', "Failed to generate select script for the selected object.");
/**
* Select the top rows from an object
@@ -60,7 +59,7 @@ export async function scriptSelect(connectionProfile: IConnectionProfile, metada
};
await connectionService.connect(connectionProfile, owner.uri, options);
} else {
throw new Error(SelectScriptNotGeneratedError);
throw new Error(nls.localize('selectScriptNotGeneratedError', "Failed to generate select script for the selected object."));
}
} catch (err) {
errorMessageService.showDialog(Severity.Error, ScriptingFailedDialogTitle, err?.message ?? err);
@@ -87,7 +86,7 @@ export async function scriptEditSelect(connectionProfile: IConnectionProfile, me
};
await connectionService.connect(connectionProfile, owner.uri, options);
} else {
throw new Error(SelectScriptNotGeneratedError);
throw new Error(nls.localize('selectScriptForEditNotGeneratedError', "Failed to generate script for Edit Data editor."));
}
}
catch (err) {