Skip to content
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

How can i set null to Else condition on CaseWhen Expression? #1315

Closed
lucasortigoso opened this issue Aug 10, 2021 · 1 comment
Closed

How can i set null to Else condition on CaseWhen Expression? #1315

lucasortigoso opened this issue Aug 10, 2021 · 1 comment

Comments

@lucasortigoso
Copy link

Hello,

I need to put NULL value on else condition on Case When expression like below. How can i do that?

SqlExpressionBuilder.case() .When( TblOne.foo.isNotNull(), wrapAsExpression<DateTime>(TblTwo.slice(TblTwo.createdDate.max()).select { TblTwo.foo eq TblOne.foo }) ) .Else(***how to put null here****)

@Tapac
Copy link
Contributor

Tapac commented Aug 17, 2021

Op.nullOp() added to cover the case. Will be released soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants