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

Compiler plugin crash when variable is passed for db Options and sql:connectionPool #2536

Closed
niveathika opened this issue Dec 22, 2021 · 1 comment

Comments

@niveathika
Copy link
Contributor

Description:

int maxOpenConnectionCustom = 15;

sql:ConnectionPool connPool = {
    maxOpenConnections: maxOpenConnections
}

The above code snippet will throw error,

error: compilation failed: The compiler extension in package 'ballerina:sql:1.1.0' failed to complete. class io.ballerina.compiler.syntax.tree.SimpleNameReferenceNode cannot be cast to class io.ballerina.compiler.syntax.tree.UnaryExpressionNode (io.ballerina.compiler.syntax.tree.SimpleNameReferenceNode and io.ballerina.compiler.syntax.tree.UnaryExpressionNode are in unnamed module of loader 'app')
@niveathika
Copy link
Contributor Author

Closing this as all modules are fixed.

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

No branches or pull requests

2 participants