Skip to content

Commit

Permalink
Added overload for ambiguous Expression.Like
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrinks committed Dec 26, 2024
1 parent 7025218 commit 1786629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SqlParser.Tests/Dialects/SqliteDialectTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using SqlParser.Ast;
using SqlParser.Dialects;
using SqlParser.Tokens;
using System.Linq.Expressions;
using static SqlParser.Ast.Expression;
using DataType = SqlParser.Ast.DataType;
using Expression = SqlParser.Ast.Expression;

// ReSharper disable CommentTypo

Expand Down
3 changes: 3 additions & 0 deletions src/SqlParser/Ast/Expression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@ public Like(Expression? expression, bool negated, Expression pattern, char? esca
public Like(Expression? expression, bool negated, Expression pattern, bool Any = false)
: this(expression, negated, pattern, (string?)null, Any) { }

public Like(Expression? expression, bool negated, Expression pattern)
: this(expression, negated, pattern, (string?)null, false) { }

public override void ToSql(SqlTextWriter writer)
{
var any = Any ? "ANY " : string.Empty;
Expand Down

0 comments on commit 1786629

Please sign in to comment.