-
Notifications
You must be signed in to change notification settings - Fork 33
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
SELECT TOP @size fails with R2dbcException #35
Comments
SQL server uses at-prefixed parameters, see Care to describe your entire scenario? Looks like you’re integrating with a Spring Data R2DBC and there we can pass thru parameters and we can use colon-prefixed named parameters in the current snapshot version. |
I'm totally aware of that but still it does not work. Currently I'm trying to invoke the database client inside of a rest controller call directly:
Results in:
Prior to that I tried it with a I have a Spring Boot application with WebFlux + Netty.
|
Parametrization of
Driver Logging:
Closing this one as invalid. On a related note: Please file a feature request in https://github.com/spring-projects/spring-data-r2dbc to add paging capabilities to |
Oh there is paging in the DatabaseClient.select():
Guess what happens:
|
That one does not yet consider dialect specifics. SQL server requires ORDER BY fields for pagination. That’s going to be considered in Spring Data‘s Dialect support. |
I still don't get the vibe how this is supposed to work. |
You need to pass in a valid SQL statement into the statement creation method via The exception on |
Parameter binding is not working at all on the latest snapshot or 1.0.0.M7.
Depending on what you do it says
A prepared statement is recognized when it contains an
@
but parameters which such a character cannot be bound. The documentation says named parameters start with:
and indexed with$
.The text was updated successfully, but these errors were encountered: