DERBY-6380; Rolling log files do not get copied in failed directory when a junit test fails
   adjusting ErrorStreamTest to copy files created in it on fail, and BaseTestCase to copy defaults on fail.


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1545935 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6380; Rolling log files do not get copied in failed directory when a junit test fails
   removing two 'fail' commands left over from debugging, and streamlining clean up in ErrorStreamTest


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1545957 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6362: CHECK constraint uses wrong schema for unqualified routine invocations

Part 1: Make sure visitors descend into all TableName nodes.
DERBY-6362: CHECK constraint uses wrong schema for unqualified routine invocations

Part 2: Fix offset of qualified table names. Their begin offset
pointed to the beginning of the table name token, but should point to
the beginning of the schema name token if they have one.

Also leave begin and end offset unspecified (-1 implied) for some
synthetic table name nodes that previously set the offsets to 0
explicitly. This makes it easier to tell whether they are synthetic
later.
DERBY-6362: CHECK constraint uses wrong schema for unqualified routine invocations

Part 3:

- Refactor code that rewrites trigger actions so that it can be reused
  for rewriting CHECK constraints.

- Rewrite CHECK constraints and make all identifiers schema qualified
  before storing them in the dictionary.

- Make the parser preserve the TableName node for the target type in
  CAST expressions for user-defined types, so that they get detected
  by the rewrite logic.
only collect nodes within range