TestFunctionsForJSON: updated testFIELDFunctionWithDotNotation &
testFIELDFunctionWithIndexNotation, improving tests of primitive values
(& arrays & objects), using dot & index notation, respectively; updated
testFIELDFunction, adding tests for (Java/SQL) null values; updated
testSET_FIELDFunctionWithIndexNotation, adding tests of arr[-1]
notation; insert a few new rows into the DB, for degenerative JSON
documents (e.g. “true” or “42”); simplified some code, making it easier
to add new rows to the database, without making tests fail; added
(private) getDocFromId method (which calls GetDocFromId stored proc),
called from testFIELDFunction when DEBUG is true; and removed all tab
characters.
Merge branch 'more-tests-for-alex-innovation-json' of https://github.com/VoltDB/voltdb.git into more-tests-for-alex-innovation-json
TestFunctionsForJSON: “commented out” all SET_FIELD tests, since it is
currently disabled (for 4.7); added testMinimalJSONdocuments, for
testing minimal JSON documents (e.g. “42”, without the quotes); added a
couple of extra rows, and tests for them in testFIELDFunction, with
{“null”: “foo”} and {“foo”: “null”} (suitably escaped); added, to
testFIELDFunctionWithIndexNotation, tests for index notation with no
name specified; updated testFIELDFunctionWithInvalidIndexNotation, with
new expected exception error messages; fixed testProcWithInvalidJSON to
handle null parameters; and removed NON_NULL_TABLE, which is no longer
used.