Reverse the order of the indices. We need to work backwards on the string to keep the indices correct

6.0-servicing
Christopher Jolly 3 years ago
parent 9597fbc23e
commit 951c389b5a

@ -499,7 +499,7 @@ namespace EntityFrameworkCore.Jet.Data
where T : struct where T : struct
{ {
var parser = new JetCommandParser(commandText); var parser = new JetCommandParser(commandText);
var globalVariableIndices = parser.GetStateIndices('$'); var globalVariableIndices = parser.GetStateIndices('$').Reverse();
var placeholderValue = new Lazy<T>(() => valueFactory(this, placeholder)); var placeholderValue = new Lazy<T>(() => valueFactory(this, placeholder));
var newCommandText = new StringBuilder(commandText); var newCommandText = new StringBuilder(commandText);

Loading…
Cancel
Save