DERBY-532 Support deferrable constraints

Patch _*derby-532-upgrade-1b*_. It checks that deferrable constraints
cannot be used unless hard upgrade has happened.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1555724 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6446: Filter an unwanted schema name which may turn up in query results depending on the order that tests run: derby-6446-01-aa-filterUnwantedSchema.diff

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1555911 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6434: Correct privileges required for INSERT statements; tests passed cleanly on derby-6434-01-ac-correctInsertPrivs.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1556571 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6437 testLockingWithRollback failing on trunk with AssertionFailedError - isolation levels: 4 2

Added information about which exception caused the assertNull errors
in ConstraintCharacteristicsTest#executeThreads to help debugging.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1556780 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6443: ArrayIndexOutOfBoundsException when calling function from trigger

StaticMethodCallNode.bindExpression() was a no-op if the node had
already been bound. This caused problems for queries that need to bind
expressions multiple times (for example INSERT INTO ... SELECT).

This fix makes StaticMethodCallNode.bindExpression() work if it's
called a second time, while still making it a no-op if it is called
recursively in order to prevent infinite recursion.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1556809 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6447: Use StrictMath for more functions in SYSFUN

Make LOG10, COSH, SINH and TANH use the corresponding methods in
java.lang.StrictMath instead of custom implementations.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1556810 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6453 Remove dead code in InsertResultSet and flag skipCheckConstraints

Patch _*cleanup-misc-3*_ which removes dead code but inserts asserts
in sane mode if we should somehow end up with triggers in bulk insert
mode and also removes a boolean variable in some interfaces which was
always called with false: {{skipCheckConstraints}}.
It adds a new test case, {{CheckConstraintTest#testbulkInsert}}.



git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1556938 13f79535-47bb-0310-9956-ffa450edef68
DERBY-5463: Don't alter the value of drdamaint when generating a new release.properties file; commit derby-5463-01-aa-leaveDRDAmaintIDAlone.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1557823 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6453; Remove dead code in InsertResultSet and flag skipCheckConstraints
   fixing a javadoc error by removing the javadoc comment relating to the removed parameter skipCheckConstraints


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1557832 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6434: Correct privilege checks for DELETE statements; commit derby-6434-02-ac-correctDeletePrivs.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1558387 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6434: Test case verifying that DERBY-6432 has been fixed; commit derby-6434-03-ac-testCaseForDerby-6432.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1558398 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6434: Don't make INSERT statements require USAGE privilege on the datatypes of generated columns; fix remaining problem described by DERBY-6433; commit derby-6434-04-aa-dontNeedPrivOnGeneratedColumnTypeForInsert.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1558559 13f79535-47bb-0310-9956-ffa450edef68
DERBY-3155: Make the INSERT column list optional in the WHEN NOT MATCHED clause of a MERGE statement provided that the number of values in the VALUES subclause equals the number of columns in the target table; commit derby-3155-12-aa-canOmitInsertColumnList.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1558871 13f79535-47bb-0310-9956-ffa450edef68
DERBY-3155: Allow system and temp tables in MERGE statements; commit derby-3155-13-aa-allowSystemAndTempTables.diff.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1558912 13f79535-47bb-0310-9956-ffa450edef68