I have updated to the latest Development Version, and I am now seeing ORA-00904 poping up all over my Spring Boot development environment.
JDBC exception executing SQL [… (b1_0.field1!=K or (b1_0. field1 field !=H …] [ORA-00904: "H": invalid identifier ] [n/a]; SQL [n/a]
It seems like HQL Parameters are incorrectly escaped This is how they look in the HQL … test.field1='K' or test.field<>'H' …
The same issue arrises when a Boolean with a converter is converted to a String.
I.e. lets take a converter that translates true → “Y” and false → “N“ JDBC exception executing SQL [… (b1_0.field1=Y …] [ORA-00904: "Y": invalid identifier ] [n/a]; SQL [n/a]
This is how the query looks in the HQL … test.field1= true …
Is this a issue caused by Hibernate or should I reach out to Spring Data?
I am also unsure how to build a test case for this as it only seems to apply to Oracle, I still attempted it, but was unable to reproduce it on my end with it |
|