Re: SQL statements from merge token

From: Tore Halset (halse..vv.ntnu.no)
Date: Tue Aug 26 2008 - 04:24:48 EDT

  • Next message: Øyvind Harboe: "Re: SQL statements from merge token"

    Hello.

    The modeler does this to be able to display the sql before executing
    it. Create a subclass of MergerContext and override its
    executeSql(String).

      - Tore.

    On Aug 26, 2008, at 9:51 , Øyvind Harboe wrote:

    > The merge stuff can produce some pretty wicked stuff.
    >
    > However, I would like to have the ability to extract the SQL
    > statements
    > that a merge token results in.
    >
    > The database administrator can then manually verify that column X and
    > table Y should indeed be deleted... :-)
    >
    > Do I just upcast to AbstractToDbToken and invoke createSql() directly?
    >
    > --
    > Øyvind Harboe
    > http://www.zylin.com/zy1000.html
    > ARM7 ARM9 XScale Cortex
    > JTAG debugger and flash programmer
    >



    This archive was generated by hypermail 2.0.0 : Tue Aug 26 2008 - 04:29:06 EDT