Skip to content

GH3618 - Failed recognition of SQL comments #3637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 41 additions & 8 deletions src/NHibernate.Test/EngineTest/ParameterParserFixture.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NHibernate.Engine.Query;
using NSubstitute;
using NUnit.Framework;

namespace NHibernate.Test.EngineTest
@@ -19,8 +20,8 @@ FROM tablea

var recognizer = new ParamLocationRecognizer();
ParameterParser.Parse(query, recognizer);
ParamLocationRecognizer.NamedParameterDescription p;
Assert.DoesNotThrow(() => p = recognizer.NamedParameterDescriptionMap["name"]);
Assert.That(recognizer.NamedParameterDescriptionMap, Has.Count.EqualTo(1));
Assert.That(recognizer.NamedParameterDescriptionMap, Contains.Key("name"));
}

[Test]
@@ -30,14 +31,14 @@ public void CanFindParameterAfterInlineComment()
@"
SELECT id
FROM tablea
-- Comment with ' number 1
-- Comment with ' :number 1
WHERE Name = :name
ORDER BY Name";

var recognizer = new ParamLocationRecognizer();
ParameterParser.Parse(query, recognizer);
ParamLocationRecognizer.NamedParameterDescription p;
Assert.DoesNotThrow(() => p = recognizer.NamedParameterDescriptionMap["name"]);
Assert.That(recognizer.NamedParameterDescriptionMap, Has.Count.EqualTo(1));
Assert.That(recognizer.NamedParameterDescriptionMap, Contains.Key("name"));
}

[Test]
@@ -54,9 +55,41 @@ FROM tablea

var recognizer = new ParamLocationRecognizer();
ParameterParser.Parse(query, recognizer);
ParamLocationRecognizer.NamedParameterDescription p;
Assert.DoesNotThrow(() => p = recognizer.NamedParameterDescriptionMap["name"]);
Assert.DoesNotThrow(() => p = recognizer.NamedParameterDescriptionMap["pizza"]);
Assert.That(recognizer.NamedParameterDescriptionMap, Has.Count.EqualTo(2));
Assert.That(recognizer.NamedParameterDescriptionMap, Contains.Key("name"));
Assert.That(recognizer.NamedParameterDescriptionMap, Contains.Key("pizza"));
}

[Test]
public void IgnoresCommentsWithinQuotes()
{
string query =
@"
SELECT id
FROM tablea WHERE Name = '
-- :comment1
' OR Name = '
/* :comment2 */
'
-- :comment3
/* :comment4 */
ORDER BY Name + :pizza -- :comment5";

var recognizer = Substitute.For<ParameterParser.IRecognizer>();
ParameterParser.Parse(query, recognizer);

//Only one parameter in the query
recognizer.ReceivedWithAnyArgs(1).NamedParameter(default, default);
recognizer.Received(1).NamedParameter("pizza", Arg.Any<int>());

//comment1 and comment2 are not really comments and therefore not parsed as blocks
recognizer.DidNotReceive().Other(Arg.Is<string>(x => x.Contains("comment1")));
recognizer.DidNotReceive().Other(Arg.Is<string>(x => x.Contains("comment2")));

//comment 3-5 are actual comments and therefore parsed as blocks
recognizer.Received(1).Other(Arg.Is<string>(x => x.StartsWith("-- :comment3")));
recognizer.Received(1).Other("/* :comment4 */");
recognizer.Received(1).Other(Arg.Is<string>(x => x.StartsWith("-- :comment5")));
}
}
}
49 changes: 25 additions & 24 deletions src/NHibernate/Engine/Query/ParameterParser.cs
Original file line number Diff line number Diff line change
@@ -48,47 +48,48 @@ public static void Parse(string sqlString, IRecognizer recognizer)

int stringLength = sqlString.Length;
bool inQuote = false;
bool afterNewLine = false;
for (int indx = 0; indx < stringLength; indx++)
{
int currentNewLineLength;

// check comments
if (indx + 1 < stringLength && sqlString.Substring(indx,2) == "/*")
// check comments, unless in quote or at end of string
if (!inQuote && indx + 1 < stringLength)
{
var closeCommentIdx = sqlString.IndexOf("*/", indx + 2, StringComparison.Ordinal);
recognizer.Other(sqlString.Substring(indx, (closeCommentIdx- indx)+2));
indx = closeCommentIdx + 1;
continue;
}

if (afterNewLine && (indx + 1 < stringLength) && sqlString.Substring(indx, 2) == "--")
{
var closeCommentIdx = sqlString.IndexOfAnyNewLine(indx + 2, out currentNewLineLength);

string comment;
if (closeCommentIdx == -1)
var candidateOpenCommentToken = sqlString.Substring(indx, 2);
if (candidateOpenCommentToken == "/*")
{
closeCommentIdx = sqlString.Length;
comment = sqlString.Substring(indx);
var closeCommentIdx = sqlString.IndexOf("*/", indx + 2, StringComparison.Ordinal);
recognizer.Other(sqlString.Substring(indx, (closeCommentIdx - indx) + 2));
indx = closeCommentIdx + 1;
continue;
}
else

if (candidateOpenCommentToken == "--")
{
comment = sqlString.Substring(indx, closeCommentIdx - indx + currentNewLineLength);
var closeCommentIdx = sqlString.IndexOfAnyNewLine(indx + 2, out currentNewLineLength);

string comment;
if (closeCommentIdx == -1)
{
closeCommentIdx = sqlString.Length;
comment = sqlString.Substring(indx);
}
else
{
comment = sqlString.Substring(indx, closeCommentIdx - indx + currentNewLineLength);
}
recognizer.Other(comment);
indx = closeCommentIdx + currentNewLineLength - 1;
continue;
}
recognizer.Other(comment);
indx = closeCommentIdx + currentNewLineLength - 1;
continue;
}

if (sqlString.IsAnyNewLine(indx, out currentNewLineLength))
{
afterNewLine = true;
indx += currentNewLineLength - 1;
recognizer.Other(Environment.NewLine);
continue;
}
afterNewLine = false;

char c = sqlString[indx];
if (inQuote)

Unchanged files with check annotations Beta

atom
: primaryExpression
(
DOT^ identifier

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 570 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: DOT
( options { greedy=true; } :
( op=OPEN^ {$op.Type = METHOD_CALL; } exprList CLOSE! ) )?
| lb=OPEN_BRACKET^ {$lb.Type = INDEX_OP; } expression CLOSE_BRACKET!
// level 0 - the basic element of an expression
primaryExpression
: identPrimary ( options {greedy=true;} : DOT^ 'class' )?

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 579 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: DOT
| constant
| COLON^ identifier
// TODO: Add parens to the tree so the user can control the operator evaluation order.
// the method looks a head to find keywords after DOT and turns them into identifiers.
identPrimary
: identifier {{ HandleDotIdent(); }}
( options {greedy=true;} : DOT^ ( identifier | o=OBJECT { $o.Type = IDENT; } ) )*

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 604 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: DOT
( ( op=OPEN^ { $op.Type = METHOD_CALL;} exprList CLOSE! )
)?
// Also allow special 'aggregate functions' such as count(), avg(), etc.
constant
: NUM_INT
| NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: NUM_FLOAT

Check warning on line 679 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: NUM_FLOAT
| NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: NUM_LONG

Check warning on line 680 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: NUM_LONG
| NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: NUM_DOUBLE

Check warning on line 681 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: NUM_DOUBLE
| NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: NUM_DECIMAL

Check warning on line 682 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: NUM_DECIMAL
| QUOTED_String
| NULL
| TRUE
@init {
HandleDotIdents();
}
: identifier ( DOT^ identifier )*

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - macos-13

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / MySQL - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SQLite - windows-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Oracle - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008-MicrosoftDataSqlClientDriver - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / SqlServer2008 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / Firebird4 - ubuntu-latest

no lexer rule corresponding to token: DOT

Check warning on line 700 in src/NHibernate/Hql/Ast/ANTLR/Hql.g

GitHub Actions / PostgreSQL - windows-latest

no lexer rule corresponding to token: DOT
;
// Wraps the IDENT token from the lexer, in order to provide