Skip to content

Commit

Permalink
Fix parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorFedchenko committed Feb 9, 2021
1 parent e5ad251 commit 1397850
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ protected virtual async Task<long> ReadHighestSequenceNr(string persistenceId, T
command.CommandText = HighestSequenceNrSql;

command.Parameters.Clear();
AddParameter(command, "PersistenceId", DbType.String, persistenceId);
AddParameter(command, "@PersistenceId", DbType.String, persistenceId);

var result = await command.ExecuteScalarAsync();
var highestSequenceNr = result is long ? Convert.ToInt64(result) : 0L;
Expand Down

0 comments on commit 1397850

Please sign in to comment.