Menu

Diff tag!

2004-10-13
2013-04-25
  • David Fishburn

    David Fishburn - 2004-10-13

    I just had a requirement that I to compare data between multiple databases after running a form of synchronization / replication.

    The diff tag appears to be just what the Dr. ordered.

    Way to go SQLUnit!

     
    • Sujit Pal

      Sujit Pal - 2004-10-21

      Hi Dave,

      Good to know that the diff tag was useful. Simon (sjgibbs) was the originator of the diff feature request (Checking for consistency between systems thread).

      -sujit

       
    • Sathi Chowdhury

      Sathi Chowdhury - 2006-05-19

      hi Sujit,
      Does diff work to compare the results between a store function that returns a ref cursor and a sql statement.
      It will be of great help if it does.I tried and does not work.
      can you give me any hint on this.
      thanks a load in advance
      Sathi

       
    • Sujit Pal

      Sujit Pal - 2006-05-20

      Hi Sathi,

      I dont think the diff tag does this. Basically, it matches the result of two <sql> or <call> elements. So if one of them sent out a REF CURSOR and the other was an SQL statement, then it would not work out of the box. One way to work around this is would be to create a generic Java program which returns a REF CURSOR given an SQL statement and use that instead of the SELECT itself. There is the <methodinvoker> tag that will allow you to run a Java program instead of <sql> or <call>.

      -sujit

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.