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

Exception when registering a custom set function #141

Open
mdrozdo opened this issue May 6, 2020 · 0 comments
Open

Exception when registering a custom set function #141

mdrozdo opened this issue May 6, 2020 · 0 comments

Comments

@mdrozdo
Copy link
Contributor

mdrozdo commented May 6, 2020

Description:
When trying to register a custom set function the SetFunction.getXXInstance method throws an exception due to not finding the function name in the internal map.

Affected Product Version:
All

OS, DB, other environment details and versions:
All

Steps to reproduce:
Call
SetFunction.getSetEqualsInstance("functionName", "anyDatatype")
Function throws

IllegalArgumentException("unknown set function functionName")

I suppose the ConditionSetFunction constructor should call getId on function type not function name (see below). but I haven't tested it.

public ConditionSetFunction(String functionName, String datatype, String functionType) {
		super(functionName, getId(functionType), datatype, BooleanAttribute.identifier, false);
	}
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