mirromutth / r2dbc-mysql

R2DBC MySQL Implementation
Apache License 2.0
656 stars 100 forks source link

right syntax to use near '' #231

Closed sysmat closed 2 years ago

sysmat commented 2 years ago
public interface PersonRepo extends ReactiveCrudRepository<Person, Integer>{

    @Query("select id, name, surname from person p where p.surname = :surname")
    Flux<Person> findBySurname(String surname);

}

- error:
`Caused by: io.r2dbc.spi.R2dbcBadGrammarException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1`
sysmat commented 2 years ago

It is not driver error, I tried jasync-r2dbc-mysql and the same error, so it must be spring bug in ReactiveCrudRepository