Skip to content

Commit

Permalink
Support select execution on History Table (#24464)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra authored and siyangMicrosoft committed Oct 12, 2023
1 parent 10e9d81 commit da0e641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ MenuRegistry.appendMenuItem(MenuId.ObjectExplorerItemContext, {
ConnectionContextKey.Provider.notEqualsTo('KUSTO'),
ConnectionContextKey.Provider.notEqualsTo('LOGANALYTICS'),
ContextKeyExpr.or(
TreeNodeContextKey.NodeType.isEqualTo(NodeType.HistoryTable),
TreeNodeContextKey.NodeType.isEqualTo(NodeType.Table),
TreeNodeContextKey.NodeType.isEqualTo(NodeType.View)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface INodeContextValue {
*/
export class MssqlNodeContext extends Disposable {

static readonly canSelect = new Set([NodeType.Table, NodeType.View]);
static readonly canSelect = new Set([NodeType.HistoryTable, NodeType.Table, NodeType.View]);
static readonly canEditData = new Set([NodeType.Table]);
static readonly canCreateOrDelete = new Set([NodeType.AggregateFunction, NodeType.PartitionFunction, NodeType.ScalarValuedFunction,
NodeType.Schema, NodeType.StoredProcedure, NodeType.Table, NodeType.TableValuedFunction,
Expand Down

0 comments on commit da0e641

Please sign in to comment.