Skip to content

Commit 93e12ab

Browse files
Update src/NHibernate/Engine/Query/ParameterParser.cs
Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
1 parent 73123ee commit 93e12ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NHibernate/Engine/Query/ParameterParser.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public static void Parse(string sqlString, IRecognizer recognizer)
5252
{
5353
int currentNewLineLength;
5454

55-
// check comments, unless in quote
56-
if (!inQuote)
55+
// check comments, unless in quote or at end of string
56+
if (!inQuote && indx + 1 < stringLength)
5757
{
5858
if (indx + 1 < stringLength && sqlString.Substring(indx, 2) == "/*")
5959
{

0 commit comments

Comments
 (0)