Uploaded image for project: 'ODE'
  1. ODE
  2. ODE-528

Modifying tables from other schemas than default via extVar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.2
    • 1.3.4
    • BPEL Runtime
    • None
    • All

    Description

      I did a following entry for extVar in deploy.xml

      <xvar:externalVariable id="var1">
      <jdbc:jdbc>
      <jdbc:datasource-jndi>myds</jdbc:datasource-jndi>
      <jdbc:table>MYSCHEMA1.MYTABLE</jdbc:table>
      </jdbc:jdbc>
      </xvar:externalVariable>

      My default schema from JDBC connection is MYSCHEMA2.
      When I insert, select or update values in DB, there's a following sql generated:

      insert into MYTABLE values (...)

      however it ought to be:

      insert into MYSCHEMA1.MYTABLE values (...)

      then a "table doesn't exist" error is issued at runtime (note that extVar initialization completes successfully).

      I did some research and fixed it in bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/DbExternalVariable.java for ode1x.
      I run extvar test, which completed successfully.

      Attachments

        Activity

          People

            rrusin Rafal Rusin
            rrusin Rafal Rusin
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: