mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-20 09:35:38 -05:00
Add Always Encrypted Parameterization Functionality (#953)
This commit is contained in:
@@ -19,6 +19,9 @@ using System.Globalization;
|
||||
using System.Collections.ObjectModel;
|
||||
using Microsoft.SqlTools.ServiceLayer.Connection;
|
||||
using Microsoft.SqlTools.ServiceLayer.BatchParser;
|
||||
using Microsoft.SqlTools.ServiceLayer.AutoParameterizaition;
|
||||
using Microsoft.SqlTools.ServiceLayer.Workspace;
|
||||
using Microsoft.SqlTools.ServiceLayer.SqlContext;
|
||||
|
||||
namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
{
|
||||
@@ -399,6 +402,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
dbCommand.CommandType = CommandType.Text;
|
||||
dbCommand.CommandTimeout = 0;
|
||||
|
||||
if (WorkspaceService<SqlToolsSettings>.Instance.CurrentSettings.QueryExecutionSettings.IsAlwaysEncryptedParameterizationEnabled)
|
||||
{
|
||||
dbCommand.Parameterize();
|
||||
}
|
||||
|
||||
List<DbColumn[]> columnSchemas = null;
|
||||
if (getFullColumnSchema)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user