Two-part question here with the following db2 query in mind:
select col1!!col2 from table1
!!
) operator. From the results it returns, it appears to be doing a simple concatenation of col1 and col2. I've looked online in the db2 documentation but haven't been able to find a definition. Can someone please verify?The way I ended up solving this problem is perhaps a bit ugly but it was the best I could do within the limits I had:
In my unit tests I did the following:
when
conditions on the spy beans such that instead of returning a query that I knew wouldn't work (as per the examples, stuff with !!
, ^<
, etc), the when
conditions would return equivalent queries with an h2-compatible syntax (||
, >=
, etc)Hopefully this can help someone.