-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
DATE 기반 함수 중에서 첫번째 파라미터를 DATEPART로 사용하는 함수가 column 으로 인식되어서 Reference 오류가 발생하던 문제를 해결합니다. 대상 함수는 아래와 같습니다. DATE_BUCKET DATEADD DATEDIFF DATEDIFF_BIG DATENAME DATEPART DATETRUNC 만약 대상 함수들을 사용했을때 첫번째 파라미터가 1 Level Column 으로 인식된 경우 SqlServerDatePartExpression으로 치환합니다.
- Loading branch information
Showing
3 changed files
with
110 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Qsi.Tree; | ||
|
||
namespace Qsi.SqlServer.Tree; | ||
|
||
public class SqlServerDatePartExpressionNode : QsiExpressionNode | ||
{ | ||
public override IEnumerable<IQsiTreeNode> Children => Enumerable.Empty<IQsiTreeNode>(); | ||
|
||
public string DatePart { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters