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

default values - valueraw, min, max, sum #244

Open
Daemach opened this issue Mar 1, 2023 · 0 comments
Open

default values - valueraw, min, max, sum #244

Daemach opened this issue Mar 1, 2023 · 0 comments

Comments

@Daemach
Copy link
Contributor

Daemach commented Mar 1, 2023

I would like to use max() to find a max taskID, but I need some kind of value to increment, even if there is no return. I would start with 0 in that case. The code below is a workaround, but the default value isn't working, with or without named arguments. I will coalesce for now, but I think this is a regression

base.taskID = qb .from( "holdings" ) .where( "jobID", base.jobID ) .valueRaw( "max(taskID)", 0, false, { datasource : "FTDIOpto" } ) + 1;

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