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 93e12ab commit 20f7e0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NHibernate/Engine/Query/ParameterParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public static void Parse(string sqlString, IRecognizer recognizer)
// check comments, unless in quote or at end of string
if (!inQuote && indx + 1 < stringLength)
{
if (indx + 1 < stringLength && sqlString.Substring(indx, 2) == "/*")
var candidateOpenCommentToken = sqlString.Substring(indx, 2);
if (candidateOpenCommentToken == "/*")
{
var closeCommentIdx = sqlString.IndexOf("*/", indx + 2, StringComparison.Ordinal);
recognizer.Other(sqlString.Substring(indx, (closeCommentIdx - indx) + 2));
Expand Down

0 comments on commit 20f7e0a

Please sign in to comment.