Uploaded image for project: 'Hibernate ODM'
  1. Hibernate ODM
  2. HIBERNATE-61

Work around native query's parameter marker issue

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      As we flushed out in POC project, currently Hibernate hard-codes `?` as the only parameter marker for native query; but we require customized parameter marker (using {$undefined: true}) to work consistently with MQL generated via AST translation.

      It has a long history and Hibernate side won't fix it soon for good reasons. We might need to figure out how to work around it. The easiest one is simply parse `?` as native query marker, as what has been done in Hibernate Reactive codebase (https://github.com/hibernate/hibernate-reactive/blob/main/hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/Parameters.java). 

            Assignee:
            Unassigned Unassigned
            Reporter:
            nathan.xu@mongodb.com Nathan Xu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None