Skip to content

Make previously HQL:ed expressions automatic candidates in SELECT #3638

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
7 changes: 5 additions & 2 deletions src/NHibernate/Linq/Visitors/QueryModelVisitor.cs
Original file line number Diff line number Diff line change
@@ -111,6 +111,7 @@ public static ExpressionToHqlTranslationResults GenerateHqlQuery(QueryModel quer
}

private readonly IntermediateHqlTree _hqlTree;
private readonly HashSet<Expression> _hqlCandidates;
private readonly NhLinqExpressionReturnType? _rootReturnType;
private static readonly ResultOperatorMap ResultOperatorMap;
private bool _serverSide = true;
@@ -165,6 +166,7 @@ private QueryModelVisitor(VisitorParameters visitorParameters, bool root, QueryM
_root = root;
_rootReturnType = root ? rootReturnType : null;
_hqlTree = new IntermediateHqlTree(root, _queryMode);
_hqlCandidates = new HashSet<Expression>();
}

private void Visit()
@@ -476,7 +478,7 @@ public override void VisitSelectClause(SelectClause selectClause, QueryModel que

private HqlSelect GetSelectClause(Expression selectClause)
{
var visitor = new SelectClauseVisitor(typeof(object[]), VisitorParameters);
var visitor = new SelectClauseVisitor(typeof(object[]), VisitorParameters, _hqlCandidates);

visitor.VisitSelector(selectClause, !_root);

@@ -537,7 +539,7 @@ private void VisitDeleteClause(Expression expression)
return;

// We only need to check there is no unexpected select, for avoiding silently ignoring them.
var visitor = new SelectClauseVisitor(typeof(object[]), VisitorParameters);
var visitor = new SelectClauseVisitor(typeof(object[]), VisitorParameters, new HashSet<Expression>());
visitor.VisitSelector(expression);

if (visitor.ProjectionExpression != null)
@@ -566,6 +568,7 @@ public override void VisitOrderByClause(OrderByClause orderByClause, QueryModel
: (HqlDirectionStatement)_hqlTree.TreeBuilder.Descending();

_hqlTree.AddOrderByClause(orderBy, direction);
_hqlCandidates.Add(clause.Expression);
}
}

16 changes: 12 additions & 4 deletions src/NHibernate/Linq/Visitors/SelectClauseVisitor.cs
Original file line number Diff line number Diff line change
@@ -16,14 +16,22 @@ public class SelectClauseVisitor : RelinqExpressionVisitor
private HashSet<Expression> _hqlNodes;
private readonly ParameterExpression _inputParameter;
private readonly VisitorParameters _parameters;
private readonly HashSet<Expression> _hqlCandidates;
private int _iColumn;
private List<HqlExpression> _hqlTreeNodes = new List<HqlExpression>();
private readonly HqlGeneratorExpressionVisitor _hqlVisitor;

public SelectClauseVisitor(System.Type inputType, VisitorParameters parameters)
// Since v5.6
[Obsolete("Use overload providing expressions to be executed with HQL.")]
public SelectClauseVisitor(System.Type inputType, VisitorParameters parameters) :
this(inputType, parameters, new HashSet<Expression>())
{ }

public SelectClauseVisitor(System.Type inputType, VisitorParameters parameters, HashSet<Expression> hqlCandidates)
{
_inputParameter = Expression.Parameter(inputType, "input");
_parameters = parameters;
_hqlCandidates = hqlCandidates;
_hqlVisitor = new HqlGeneratorExpressionVisitor(_parameters);
}

@@ -69,9 +77,9 @@ public void VisitSelector(Expression expression, bool isSubQuery)

if (distinct != null)
{
var treeNodes = new List<HqlTreeNode>(_hqlTreeNodes.Count + 1) {_hqlTreeBuilder.Distinct()};
var treeNodes = new List<HqlTreeNode>(_hqlTreeNodes.Count + 1) { _hqlTreeBuilder.Distinct() };
treeNodes.AddRange(_hqlTreeNodes);
_hqlTreeNodes = new List<HqlExpression>(1) {_hqlTreeBuilder.ExpressionSubTreeHolder(treeNodes)};
_hqlTreeNodes = new List<HqlExpression>(1) { _hqlTreeBuilder.ExpressionSubTreeHolder(treeNodes) };
}
}

@@ -82,7 +90,7 @@ public override Expression Visit(Expression expression)
return null;
}

if (_hqlNodes.Contains(expression))
if (_hqlNodes.Contains(expression) || _hqlCandidates.Contains(expression))
{
// Pure HQL evaluation
_hqlTreeNodes.Add(_hqlVisitor.Visit(expression).AsExpression());

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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 / 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 - 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 / 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 / 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 / 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 / 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 / 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 / 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 / PostgreSQL - windows-latest

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