Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-819

Support for per-adapter customization of EJBQL translator

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0
    • 3.0M2
    • Core Library
    • None

    Description

      One the important features of EJBQL query is that, just like SelectQuery its synatx is DB-independent . Therefore we need a mechanism to customize translation per DbAdapter. The first case that came up where we will need it:

      • Null handling. Most databases support null comparison (although the result is often different):

      SELECT * FROM ARTIST WHERE ARTIST_NAME = NULL (notice "= NULL" instead of "IS NULL)

      FrontBase throws an exception. So one alternative syntax we can use for this query on FrontBase is "SELECT * FROM ARTIST WHERE FALSE"

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment