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

[miss submitted] defaultIfEmpty possibly not working? #17

Closed
Mu4h4h4 opened this issue Jan 23, 2018 · 0 comments
Closed

[miss submitted] defaultIfEmpty possibly not working? #17

Mu4h4h4 opened this issue Jan 23, 2018 · 0 comments

Comments

@Mu4h4h4
Copy link
Contributor

Mu4h4h4 commented Jan 23, 2018

            return database
                    .select("SELECT SUM(amount) FROM table")
                    .parameter("param1", param1)
                    .parameter("param2", param2)
                    .getAs(BigDecimal.class)
                    .defaultIfEmpty(new BigDecimal(-1));
@Mu4h4h4 Mu4h4h4 changed the title defaultIfEmpty possibly not working? :( [miss submitted] defaultIfEmpty possibly not working? Jan 23, 2018
@Mu4h4h4 Mu4h4h4 closed this as completed Jan 23, 2018
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

1 participant