Skip to content

Commit

Permalink
Fix codegen failure in version setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Hawxy committed Jul 25, 2024
1 parent 38c3e08 commit 163ca02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static GeneratedType buildUpdateStreamVersion(GeneratedType builderType,
configureCommand.Frames.AppendSql("set version = ");
configureCommand.SetParameterFromMember<StreamAction>(0, x => x.Version);

configureCommand.Frames.AppendSql("where id = ");
configureCommand.Frames.AppendSql(" where id = ");
if (graph.StreamIdentity == StreamIdentity.AsGuid)
{
configureCommand.SetParameterFromMember<StreamAction>(1, x => x.Id);
Expand All @@ -132,7 +132,7 @@ private static GeneratedType buildUpdateStreamVersion(GeneratedType builderType,
configureCommand.SetParameterFromMember<StreamAction>(1, x => x.Key);
}

configureCommand.Frames.AppendSql("and version = ");
configureCommand.Frames.AppendSql(" and version = ");
configureCommand.SetParameterFromMember<StreamAction>(2, x => x.ExpectedVersionOnServer);

if (graph.TenancyStyle == TenancyStyle.Conjoined)
Expand Down

0 comments on commit 163ca02

Please sign in to comment.