Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,10 @@ CommandOrigin origin
}
}

commandProcessorBase = executionContext.CommandDiscovery.LookupCommandProcessor(CommandText, origin, _useLocalScope);
// Favour a ComamndInfo object if one is available.
commandProcessorBase = CommandInfo is CommandInfo commandInfo
? executionContext.CommandDiscovery.LookupCommandProcessor(commandInfo, origin, _useLocalScope, null)
: executionContext.CommandDiscovery.LookupCommandProcessor(CommandText, origin, _useLocalScope);
Comment on lines +530 to +533

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll need a team member with more knowledge of the engine than I have to advise whether this suggestion has valid merit or not.

}

CommandParameterCollection parameters = Parameters;
Expand Down