Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-27

SQL Parameter markers generated for literals causes DB2 SQL error SQLCODE -417(SQLSTATE 42609), 418(SQLSTATE 42610)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • query
    • None

    Description

      over usage of parameter markers for LITERALS causes DB2 SQL errors.
      Literals in the JP query if generated 'as is' in the pushdown SQL, can avoid DB2 SQL errors.
      Simple predicates caused DB2 SQL errors:
      where substring(e.name, 1, 5) = 'Harry'
      where mod(e.empid, 2) > 0

      Attachments

        Activity

          People

            Unassigned Unassigned
            fancy Catalina Wei
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: