Coder Social home page Coder Social logo

Comments (5)

dsigitov avatar dsigitov commented on July 18, 2024

Can you provide the query string you're trying to execute and the exception (preferably with stack trace)?
I've been using case insensitive queries for a while without any issues.

from nhibernate.odata.

rodrigosendin avatar rodrigosendin commented on July 18, 2024

Hi,

The query string is: ?$filter=substringof(%27carlos%27,Nome)&$orderby=Id&$top=35

The generated SQL QUERY is:
SELECT this_.id as id6_0_,
this_.Nome as Nome6_0_
FROM public.Beneficiario this_
WHERE this_.Nome like '%Carlos%' / :p0 /
ORDER BY this_.id asc
limit 35 / :p1 /

There is no exception. The problem is that on the PostgreSQL we expect IILIKE instead of LIKE:

WHERE this_.Nome ilike '%Carlos%'

Thanks!

from nhibernate.odata.

netrevisanto avatar netrevisanto commented on July 18, 2024

+1

from nhibernate.odata.

rodrigosendin avatar rodrigosendin commented on July 18, 2024

Thanks!! It's perfect

from nhibernate.odata.

pvginkel avatar pvginkel commented on July 18, 2024

Thanks for the suggestion and @dsigitov pull request. I've pushed a new version to NuGet.

from nhibernate.odata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.