Code Monkey home page Code Monkey logo

Comments (4)

bwmodular avatar bwmodular commented on May 28, 2024 1

Bit more digging and simiplifed the tests a little.
The equivalent of this query fails:

select * from salesOrder s,
         salesorderdetail d
         where d.quantity is not null
         AND 
         (d.description = "A" OR d.productdescription = "B")

wheras the equivalent of this query works OK:

select * from salesOrder s,
         salesorderdetail d
         where d.description = "A" OR d.productdescription = "B"

So it's the nested Or within the And which seems to break things.
Issue63.zip
The attached Unit tests have the two queries, as FetchXML and as QueryExpressions - two working OK (without the nested filter) and two not.

from fake-xrm-easy.

jordimontana82 avatar jordimontana82 commented on May 28, 2024

Hi Ben,

Thank you again, that's interesting.

Maybe is behaving differently when the EntityName property is not specified in the filter (wild guess). I'll setup a unit test to reproduce

from fake-xrm-easy.

bwmodular avatar bwmodular commented on May 28, 2024

Here's a Unit Test. Don't want to commit it because it'll break the build. but here for when you have time to look at it...
Issue63.zip

from fake-xrm-easy.

jordimontana82 avatar jordimontana82 commented on May 28, 2024

Hi @bwmodular

Thanks a lot for all this info.

from fake-xrm-easy.

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.