darrachequesne / spring-data-jpa-datatables

Spring Data JPA extension to work with the great jQuery plugin DataTables (https://datatables.net/)
Apache License 2.0
440 stars 174 forks source link

Disable lower() on search specification #127

Closed dawnpeace closed 3 years ago

dawnpeace commented 3 years ago

Hello I'm using sql server on my project and I needed to search on text datatype which I couldn't perform because it would throw error "datatype text is invalid for argument 1 of lower" on sql is there anyway to disable the lower function ? Thanks

darrachequesne commented 3 years ago

Hi! This is not currently possible, but we could indeed add an option for this.

That being said, according to the documentation:

character_expression must be of a data type that is implicitly convertible to varchar

I wonder why it does not work with the text datatype.

Reference:

dawnpeace commented 3 years ago

Thanks for the reply Unfortunately It is not possible to lower text data type for SQL Server It would throw Argument data type text is invalid for argument 1 of lower function. error. The input needed to be casted to varchar datatype in order to make lower function works

I will close this then