Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for JPQL queries where identifier clashes with function #2218

Commits on Jul 23, 2024

  1. (eclipse-ee4j#2217) Fix when an unnamed entity has a field with name …

    …as a function
    
    E.g., if Box entity has field "length", "delete from Box where length = 1" fails
    This commit fixes it.
    
    To do:
    - fix copyright headers
    OndroMih committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    e7f1fba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5d1620a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e07df3a View commit details
    Browse the repository at this point in the history
  4. (eclipse-ee4j#2217) Support implicit variable this in DELETE. Add tests

    Tests with entityManager for SELECT, UPDATE, DELETE with implicit variable
    OndroMih committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    a0c5fa1 View commit details
    Browse the repository at this point in the history
  5. (eclipse-ee4j#2217) Fixing failed tests

    * fix tests in AbstractGrammarValidatorTest for invalid numeric literals. Simplified my previous changes. Recompute word type after reverting functions without arguments. This avoids a literal would be parsed as a number
    * fix test advanced.JUnitJPQLModifyTest.updateUnqualifiedAttributeInWhere. An implicit variable was incorrectly added in a nested statement, in which an explicit variable was defined
    OndroMih committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    20fa01a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a09bfc9 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Configuration menu
    Copy the full SHA
    6221df4 View commit details
    Browse the repository at this point in the history
  2. (eclipse-ee4j#2217) Apply fix for all functions, not only length

    Moved the check for invalid expression to general places in expression and factory.
    OndroMih committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    4b7b8f9 View commit details
    Browse the repository at this point in the history
  3. (eclipse-ee4j#2217) Revert moving isNumericLiteral method

    This method is no longer needed in NumericLiteral after fixes in the previous commit.
    OndroMih committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    87fad3c View commit details
    Browse the repository at this point in the history
  4. (eclipse-ee4j#2217) Moved tests to jpa.test.jpql

    Uses existing Room entity with a field named "length"
    
    Note: the test "JUnitJPQLJakartaDataNoAliasTest.tesUpdateQueryWithThisVariable" is still failing
    OndroMih committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    5a0a76b View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. Configuration menu
    Copy the full SHA
    ec20853 View commit details
    Browse the repository at this point in the history