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

Issues with nameless parameters #3

Closed
thomasnield opened this issue Oct 9, 2017 · 3 comments
Closed

Issues with nameless parameters #3

thomasnield opened this issue Oct 9, 2017 · 3 comments

Comments

@thomasnield
Copy link
Owner

This function inside PreparedStatementBuilder:

    fun parameters(vararg parameters: Any?) {
        furtherOps += { it.processParameters(parameters) }
    }

Needs to be changed to:

    fun parameters(vararg parameters: Any?) {
        parameters.forEach { parameter(it) }
    }

That would then delegate to this function:

    fun parameter(value: Any?) {
        furtherOps += { it.processParameter(namelessParameterIndex.getAndIncrement(), value) }
    }

which handles the auto-incrementing of indices for nameless parameters.

thomasnield added a commit that referenced this issue Nov 27, 2017
@thomasnield
Copy link
Owner Author

Resolved in Release 0.1.1

@thomasnield
Copy link
Owner Author

I seem to still be having problems with this.

@thomasnield thomasnield reopened this Jan 5, 2018
@thomasnield
Copy link
Owner Author

Resolved.

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