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

pull/137/head
Christopher Jolly 3 years ago
parent b9e000dde2
commit 9464868c1d

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

Loading…
Cancel
Save