Skip to content

Commit

Permalink
Update src/NHibernate/Engine/Query/ParameterParser.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Frédéric Delaporte <[email protected]>
  • Loading branch information
gliljas and fredericDelaporte authored Jan 5, 2025
1 parent 73123ee commit 93e12ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NHibernate/Engine/Query/ParameterParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public static void Parse(string sqlString, IRecognizer recognizer)
{
int currentNewLineLength;

// check comments, unless in quote
if (!inQuote)
// check comments, unless in quote or at end of string
if (!inQuote && indx + 1 < stringLength)
{
if (indx + 1 < stringLength && sqlString.Substring(indx, 2) == "/*")
{
Expand Down

0 comments on commit 93e12ab

Please sign in to comment.