You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) ~[na:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Assembly trace from producer [reactor.core.publisher.FluxIterable] :
reactor.core.publisher.Flux.fromIterable(Flux.java:1117)
io.r2dbc.h2.H2Statement.execute(H2Statement.java:140)
Error has been observed at the following site(s):
*_______________________Flux.fromIterable ⇢ at io.r2dbc.h2.H2Statement.execute(H2Statement.java:140)
|_ Flux.map ⇢ at io.r2dbc.h2.H2Statement.execute(H2Statement.java:141)
*____________________________Flux.flatMap ⇢ at io.r2dbc.h2.H2Statement.execute(H2Statement.java:105)
|_ Flux.cast ⇢ at org.springframework.r2dbc.core.ResultFunction.apply(ResultFunction.java:66)
|_ checkpoint ⇢ SQL ..<snip>..
Table schema
Input Code
insert xyz; \n
Steps to reproduce
This unit test doesn't produce the IndexOutOfBoundsException but to demonstrate that empty sql is allowed to execute.
This creates a root issue in the SessionClient.createCommand().
Bug Report
Versions
Current Behavior
Stack trace
Table schema
Input Code
Steps to reproduce
This unit test doesn't produce the
IndexOutOfBoundsException
but to demonstrate that empty sql is allowed to execute.This creates a root issue in the
SessionClient.createCommand()
.Input Code
Expected behavior/code
Empty SQL should be filtered
Possible Solution
N/A
Additional context
When using Spring Data and """-quoted string query as below:
The text was updated successfully, but these errors were encountered: