id stringlengths 22 25 | commit_message stringlengths 137 6.96k | diffs listlengths 0 63 |
|---|---|---|
derby-DERBY-4677-012a72b2 | DERBY-4677
We were not transferring unique nullable properties from the system catalog to the store layer during compress table and bulk insert. Because of that, after those operations, we started allowing duplicate rows those causing db corruption. With this checkin, we will be transferring unique nullable properties... | [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/InsertResultSet.java",
"hunks": [
{
"added": [
"\t\t\tif(cd.getIndexDescriptor().isUniqueWithDuplicateNulls())",
"\t\t\t{",
"\t\t\t\tproperties.put(",
"\t \"uniqueWithDuplicateNu... |
derby-DERBY-4679-125f9182 | DERBY-4679 Several left outer joins causes unstable query with incorrect results
Patch derby-4679b, which solves the following problem:
When transitive closure generates new criteria into the query, it is
sometimes confused by situations where the same column name appears in
a result column list multiple times due to... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ColumnReference.java",
"hunks": [
{
"added": [
" /* For remembering original (tn,cn) of this CR during join flattening. */",
" private int tableNumberBeforeFlattening = -1;",
" private int columnNum... |
derby-DERBY-4679-4ce669e5 | DERBY-4679 Several left outer joins causes unstable query with incorrect results
Follow-up patch derby-4679-followup, which makes the original patch
safer by also matching the column name once a candidate result column
has been located using the table number and column number pair to
match an RC. This is to safe-guard... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ResultColumnList.java",
"hunks": [
{
"added": [
" * <p/>",
" * {@code columnName} is used to assert that we find the right column.",
" * If we found a match on (tn, cn) but columnName is wrong, r... |
derby-DERBY-4679-b26c1ca2 | DERBY-4679 Several left outer joins causes unstable query with incorrect results
Follow-up patch derby-4679-2a, which makes the new (tn, cn) based
remapping work also for a CR to a subquery join participant being rebound
after flattening, see detailed comments in the code. Extra test cases
are added to JoinTest#testD... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ResultColumnList.java",
"hunks": [
{
"added": [
" * cf. DERBY-4695, we could remove this parameter."
],
"header": "@@ -325,7 +325,7 @@ public class ResultColumnList extends QueryTreeNodeVector",
"rem... |
derby-DERBY-4684-1b3f93b3 | DERBY-4684: Fix implicit casts to BOOLEAN.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@951047 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/SQLBoolean.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.reference.SQLState;"
],
"header": "@@ -30,6 +30,7 @@ import org.apache.derby.iapi.services.io.Storable;",
"removed": []
}
]
}... |
derby-DERBY-4685-20cc6f64 | DERBY-4685: Dead/unreachable code in OpenConglomerate.lockPositionForWrite()
Remove the second parameter (forInsert) in lockPositionForWrite()
because it is always false in the current code, and because the method
is not believed to work for inserts.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1... | [
{
"file": "java/engine/org/apache/derby/impl/store/access/conglomerate/GenericConglomerateController.java",
"hunks": [
{
"added": [
" open_conglom.lockPositionForWrite(pos, true);"
],
"header": "@@ -176,7 +176,7 @@ public abstract class GenericConglomerateContr... |
derby-DERBY-4686-33288d68 | DERBY-4686: SQLBinary.writeBlob is inefficient, reading one byte at a time from the source BLOB
Improves performance by reading and writing from/to a transfer buffer.
Patch contributed by Yun Lee (yun dot lee dot bj at gmail dot com).
Patch file: DERBY-4686-1.diff
git-svn-id: https://svn.apache.org/repos/asf/db/de... | [
{
"file": "java/engine/org/apache/derby/iapi/types/SQLBinary.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.services.io.DerbyIOException;"
],
"header": "@@ -31,6 +31,7 @@ import org.apache.derby.iapi.types.DataValueDescriptor;",
"removed": []
... |
derby-DERBY-4692-6ad8107b | DERBY-4692: Forbid UNIONs between BOOLEAN and non-BOOLEAN types, per the SQL Standard.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@952263 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ResultColumnList.java",
"hunks": [
{
"added": [
"\t\t\t** Check type compatability.",
"\t\t\tif ( !unionCompatible( thisExpr, otherExpr ) )"
],
"header": "@@ -2373,14 +2373,10 @@ public class ResultCol... |
derby-DERBY-4693-3c3fb736 | DERBY-4693: RENAME COLUMN loses IDENTITY attributes
This change modifies the RENAME COLUMN logic so that it preserves the
autoincrement properties of the column when renaming it. Since RENAME
COLUMN more-or-less drops and re-adds the column, we need to ensure
that when the column is re-added, if it is an Autoincremen... | [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/RenameConstantAction.java",
"hunks": [
{
"added": [
"import org.apache.derby.impl.sql.compile.ColumnDefinitionNode;"
],
"header": "@@ -50,6 +50,7 @@ import org.apache.derby.catalog.UUID;",
"removed": []
... |
derby-DERBY-4694-65213c4f | DERBY-4694: Build breaks on Mac OS X due to JDK classpath issues
Relaxed verification criteria for Apple JDKs (skip check for Headers directory).
Added flag -DprintCompilerPropertiesVerbose to aid debugging when the
property setter fails to set the correct compile classpath(s).
Patch file: derby-4694-2b-debugging_and... | [
{
"file": "java/build/org/apache/derbyPreBuild/PropertySetter.java",
"hunks": [
{
"added": [],
"header": "@@ -123,10 +123,8 @@ public class PropertySetter extends Task",
"removed": [
" private static final String APPLE_JAVA_ROOT = \"/System/Library/Frameworks/J... |
derby-DERBY-4694-ee6ea33e | DERBY-4694: Build breaks on OS X due to JDK classpath issues.
Enabled JAR inspection for Mac OS X instead of using hard-coded values.
The motivation for the change is that Apple has started symlinking the
directories for JDK 1.4 and JDK 1.5 to JDK 1.6. This made the build fail on
OS X (only recent fresh installs, wher... | [
{
"file": "java/build/org/apache/derbyPreBuild/PropertySetter.java",
"hunks": [
{
"added": [],
"header": "@@ -23,7 +23,6 @@ package org.apache.derbyPreBuild;",
"removed": [
"import java.io.FilenameFilter;"
]
},
{
"added": [
" p... |
derby-DERBY-4695-ee21e7c1 | DERBY-4695 Internal assignment of tablenumer, columnnumber looks wrong in query tree, although no ill effects are seen
Patch derby-4695-fixcolumnno-1b, which moves the assignment of
ColumnReference#columnnumber from ColumnReference to the underlying
FromTable, i.e. the same place as where the table number is
assigned.... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ColumnReference.java",
"hunks": [
{
"added": [
"",
" /**",
" * The FromTable this column reference is bound to.",
" */",
" private int tableNumber;",
"",
... |
derby-DERBY-4698-2e7e8f6d | DERBY-4698 Simple query with HAVING clause crashes with NullPointerException
Patch derby-4698-2. The case of column references in HAVING clauses
being wrong after JOIN flattening was initially solved by
DERBY-3880. That solution was partial in that it can sometimes happen
too late.
This patch changes the fix-up of c... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/FromList.java",
"hunks": [
{
"added": [
" * @param havingClause The HAVING clause, if any",
" GroupByList gbl,",
" ValueNode havingC... |
derby-DERBY-4699-a8132ce4 | DERBY-3989 / DERBY-4699
Made PropertySetter ignore Java 6 libraries if a Java 5 compiler is used.
If j16lib is specified explicitly in such an environment, the build will be
aborted (an error message will be displayed to the user).
Patch file: derby-3989-02-aa-dontUseJava6LibsWithJava5Compiler.diff
git-svn-id: http... | [
{
"file": "java/build/org/apache/derbyPreBuild/PropertySetter.java",
"hunks": [
{
"added": [
" if ( j14lib != null ) {",
" debug(\"'j14lib' explicitly set to '\" + j14lib + \"'\");",
" setClasspathFromLib(J14CLASSPATH, j14l... |
derby-DERBY-47-028077eb | DERBY-47 (partial): Patch to implement execution-time "probing" given a probe
predicate "place-holder" and a list of IN values. This patch creates a new
execution-time result, MuliProbeTableScanResultSet, to perform the probing.
At a higher-level the changes in this patch make it so that repeated calls to
MultiProbeTa... | [
{
"file": "java/engine/org/apache/derby/iapi/types/DataType.java",
"hunks": [
{
"added": [
"import java.lang.Comparable;"
],
"header": "@@ -35,6 +35,7 @@ import org.apache.derby.iapi.services.sanity.SanityManager;",
"removed": []
},
{
"adde... |
derby-DERBY-47-0b2eeba7 | DERBY-2491 (partial): Add new DistinctTest, not wired
in to _Suite due to one failing test case related to
DERBY-47 that merits investigation.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@523454 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java",
"hunks": [
{
"added": [
" private boolean distinctScan = false;",
" private boolean eliminatedDuplicates = false;",
" private boolean tableScan = false;",
" ... |
derby-DERBY-47-1ad3b32f | DERBY-47 (partial): First incremental patch for the multi-probing ("mp")
approach described in Jira comments. As mentioned in that comment, we need
to be able to distinguish between "true" relational predicates and "probe
predicates" so that we do not incorrectly perform certain operations on
probe predicates. This fir... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/BinaryRelationalOperatorNode.java",
"hunks": [
{
"added": [
"\t/* If this BinRelOp was created for an IN-list \"probe predicate\"",
"\t * then we keep a pointer to the original IN-list. This serves",
"\t * ... |
derby-DERBY-47-7777c5dd | DERBY-47 (partial): Patch that adds logic to create IN-list "probe predicates"
during preprocessing, thus allowing the code changes in all previous patches
for this issue to take effect. With this patch Derby will now re-write IN
lists as probe predicates and, if the optimizer thinks it is best to do so,
will do index ... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/InListOperatorNode.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.DataTypeDescriptor;"
],
"header": "@@ -31,6 +31,7 @@ import org.apache.derby.iapi.sql.dictionary.DataDictionary;",
"r... |
derby-DERBY-47-83802657 | DERBY-47 (partial): Update the logic for cost-based optimization (CBO) and
modification of access paths (MoAP) to recognize IN-list "probe predicates"
and to handle them appropriately. More specifically this patch adds code to
do the following:
- During costing, recognize when we're using a probe predicate as a
... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java",
"hunks": [
{
"added": [
"\t\t\t/* If we have a probe predicate that is being used as a start/stop",
"\t\t\t * key then ssKeySourceInList will hold the InListOperatorNode",
"\t\t\t * from... |
derby-DERBY-47-9d829130 | DERBY-47 (cleanup): Cleanup patch which does the following:
1 - Changes Predicate.isRelationalOpPredicate() so that it just calls
the already existing method "isRelationalOperator()" on the left
operand of the predicate's AND node. This ultimately comes down
to a simple check for a null variable i... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java",
"hunks": [
{
"added": [
"\t\t\t\t\t * allow a single start/stop key per column position in",
"\t\t\t\t\t * the index (see PredicateList.orderUsefulPredicates()).",
"\t\t\t\t\t\tif ((ssKe... |
derby-DERBY-47-cbdc90cf | DERBY-47 (partial): Code generation patch that does the following:
1 - Moves the code for generating a list of IN values into a new method,
InListOperatorNode.generateListAsArray()". The new method is then called
from two places:
A. InListOperatorNode.generateExpression(): the "normal" code-path for
... | [
{
"file": "java/engine/org/apache/derby/iapi/sql/compile/JoinStrategy.java",
"hunks": [
{
"added": [
"\t * @param bulkFetch True means bulk fetch is being done on the inner table",
"\t * @param multiprobe True means we are probing the inner table for rows",
"\t * ... |
derby-DERBY-470-e1b8b606 | DERBY-470 - Exception when using LOCALIZEDDISPLAY with JSR169
1. Check for BigDecimal class in the JVM by doing a Class.forName
2. Call getNumberAsString for NUMERIC and DECIMAL types only if BigDecimal class is available. Otherwise, return rs.getString.
Contributed by Deepa Remesh
git-svn-id: https://svn.apach... | [
{
"file": "java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java",
"hunks": [
{
"added": [
"\tprivate static boolean HAVE_BIG_DECIMAL;",
"\t",
"\t{",
"\t\tboolean haveBigDecimal;",
"\t\ttry {",
"\t\t\tClass.forName(\"java... |
derby-DERBY-4700-43220cc1 | DERBY-4700: Add method to obtain a bogus port in TestConfiguration
Added the method getBogusPort to obtain a port where no Derby network server
is supposed to be running (i.e. when doing negative connect tests).
Patch file: derby-4700-1b.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@963705 ... | [
{
"file": "java/testing/org/apache/derbyTesting/junit/TestConfiguration.java",
"hunks": [
{
"added": [
"public final class TestConfiguration {"
],
"header": "@@ -56,7 +56,7 @@ import junit.framework.TestSuite;",
"removed": [
"public class TestConfigu... |
derby-DERBY-4700-b765481f | DERBY-4700: Add method to obtain a bogus port in TestConfiguration
Made bogus port static so that it can be shared across TestConfiguration instances.
Increased the maximum port count to 20 (we're currently using 11 in suites.All).
Patch file: derby-4700-2a-static_bogus.diff
(changed 11 to 20 for MAX_PORT... | [
{
"file": "java/testing/org/apache/derbyTesting/junit/TestConfiguration.java",
"hunks": [
{
"added": [
" private final static int MAX_PORTS_USED = 20;",
" private static final int bogusPort;"
],
"header": "@@ -75,13 +75,14 @@ public final class TestCon... |
derby-DERBY-4704-0859d5b4 | DERBY-4704: Make casts of strings to booleans always nullable.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@956025 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4704-8260425f | DERBY-4704: Incorrect nullability when casting non-nullable VARCHAR to BOOLEAN
Added test case. Disabled for now.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@955900 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4706-ccfada30 | DERBY-4706: Remove stale and potentially unused code Request.writeEncryptedScalarStream
Removed the method writeEncryptedScalarStream in Request, and a number of methods only used by it. The other
methodsdiffer from their "normal" counter-parts only by writing into a new buffer instead of the transfer
buffer (i.e. ty... | [
{
"file": "java/client/org/apache/derby/client/net/Request.java",
"hunks": [
{
"added": [
" // DERBY-4706",
" // The network server doesn't support the security mechanisms above.",
" // Further, the code in writeEncryptedScalarStre... |
derby-DERBY-4709-155fa10b | DERBY-4709: Create test that parse client trace file to detect round-trips for Derby-4653.
Alternative test for commit/rollback flow optimization, which parses the
DRDA protocol flow log to verify that a commit/rollback flows over the network
only when required.
The test is very general, it does not test correct commi... | [] |
derby-DERBY-471-8ff0b23f | DERBY-471 Correct DatabaseMetaData.getTimeDateFunctions to correctly return
a valid subset of the JDBC/ODBC escaped functions that Derby supports.
Expanded existing tests for time date functions.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@348330 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-471-c84cf384 | DERBY-471 Correct DatabaseMetaData.getNumericFunctions,getSystemFunctions and getStringFunctions
to correctly return a valid subset of the JDBC/ODBC escaped functions that Derby supports.
Added tests that ensure the functions listed by Derby are supported, and that all
the functions defined by the spec and supported by... | [] |
derby-DERBY-4711-780c0c3d | DERBY-4711: Hung thread after another thread is interrupted
If a thread fails while waiting for a lock, remove that thread from
the queue.
Patch contributed by Luke Quinane <luke@nuix.com>.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@957902 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/services/locks/LockSet.java",
"hunks": [
{
"added": [
" byte wakeupReason = 0;",
" try {",
" wakeupReason = waitingLock.waitForGrant(actualTimeout);",
"... |
derby-DERBY-4712-a823c6a8 | DERBY-4712 Complex nested joins problems
Patch DERBY-4712b, which removes one of the source for NPE seen by the reporter.
The other is covered by DERBY-4798.
A corner case: the patch makes an inner join which decides it is not
flattenable, propagate this fact down to any nested outer join nodes
containing nested inne... | [] |
derby-DERBY-4713-70c969f3 | DERBY-4713; Subclasses of ScriptTestCase can not run correctly with the non-English default locale
committing patch derby-4713-2.
patch contributed by Yun Lee (yun dot lee dot bj at gmail dot com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1055998 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4715-6a108f11 | DERBY-4715 Write jvm information and path of derby.jar to derby.log
Contributed by Lily Wei (lily wei at yahoo dot com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@965647 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/data/BaseDataFileFactory.java",
"hunks": [
{
"added": [
"import java.io.UnsupportedEncodingException;",
"",
"import java.net.URL;",
"import java.net.URLDecoder;",
"import java.security.Code... |
derby-DERBY-4717-811c29d0 | DERBY-4717: Driver trace file isn't closed/released on physical connection close when specified with the traceFile attribute/setter
Made Derby close the trace file specified as 'traceFile' (data source setter or
as a connection URL attribute) when the physical connection is closed.
Patch file: derby-4717-1b.diff
g... | [
{
"file": "java/client/org/apache/derby/jdbc/ClientBaseDataSource.java",
"hunks": [
{
"added": [
" if (printWriter != logWriter &&",
" (traceDirectory != null || traceFile != null))"
],
"header": "@@ -621,7 +621,8 @@ public abstract cla... |
derby-DERBY-4723-19311603 | DERBY-4723: Using an instance lock to protect static shared data in EmbedPooledConnection
Removed code using incorrect syncronization, as it was used for tracing only
and the hashCode() output should suffice for that.
Patch file: derby-4723-1a-remove_code.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby... | [
{
"file": "java/engine/org/apache/derby/jdbc/EmbedPooledConnection.java",
"hunks": [
{
"added": [],
"header": "@@ -64,13 +64,6 @@ import javax.sql.ConnectionEvent;",
"removed": [
"",
" /** Static counter for connection ids */",
" private stat... |
derby-DERBY-4729-eaa0d8cf | DERBY-4729 add more information to the XACT_PROTOCOL_VIOLATION returned from sto
re.
When this error is reported it is often hard to reproduce, so adding
printing of internal state of the Transaction when it is hit. Hopefully
this help in understanding what is going on when the error is hit.
git-svn-id: https://sv... | [
{
"file": "java/engine/org/apache/derby/impl/store/raw/xact/Xact.java",
"hunks": [
{
"added": [
" SQLState.XACT_PROTOCOL_VIOLATION_DETAILED, ",
" toInternalDetailString());"
],
"header": "@@ -757,7 +757,8 @@ public class... |
derby-DERBY-4730-1292a7f9 | DERBY-4730: Add BOOLEAN to list of datatypes returned by DatabaseMetaData.getTypeInfo().
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@961497 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4731-2c70a31f | DERBY-4731 XA two phase commit with active GLOBAL TEMPORARY TABLE causes An internal error identified by RawStore module
For temp tables declared as following derby needs to do special work at the
time of commit to arrange for the temporary table to have no rows once the
commit completes.:
DECLARE GLOBAL TEMPORARY... | [
{
"file": "java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java",
"hunks": [
{
"added": [
" * Do the necessary work at commit time for temporary tables",
" * <p>",
" * 3)After savepoint fix up, then handle all ON COMMIT DELE... |
derby-DERBY-4731-2d08e7af | DERBY-4731
Previous change did not completely solve the problem. There is a problem with
the initial fix, not sure why it only showed an error in the 10.3 backport.
The temporary tables are stored in the transaction context, so using a nested
transaction creates a new context and the work there is not reflected in ... | [
{
"file": "java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java",
"hunks": [
{
"added": [
" ",
" for (int i=0; i<allDeclaredGlobalTempTables.size(); i++)",
" TableDescriptor td = ",
" ((... |
derby-DERBY-4731-3bb8c054 | DERBY-4731 XA two phase commit with active GLOBAL TEMPORARY TABLE causes An internal error identified by RawStore module
just checking in fixtures for the RawStore error and the the Assert case to XATest. The fixtures are xtestXATempTableD4731_RawStore() and xtestXATempTableD4731_Assert and can be enabled by removing... | [] |
derby-DERBY-4731-6819a865 | DERBY-4743 Attempt to access a DECLARE GLOBAL TEMPORARY TABLE after commit in an XA transaction in Network server fails.
The fix for DERBY-4731 made the behavior consistent across embedded and
network server. Derby does not support accessing global temporary tables
declared in an XA transaction subsequent to the co... | [] |
derby-DERBY-4732-52694e5d | DERBY-4732: Release system resources in CanonTestCase thoroughly
Added finally block to clean up resources.
Contributed by Yun Lee (yun dot lee dot bj at gmail dot com).
Patch file: derby-4732.patch
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@963716 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4735-452d4674 | DERBY-4735 prepare of an XA read only transaction with a declared global temporary table gets and ASSERT in SANE mode.
Fixing test case in the junit XATtest.java test. Changed it to not try and
do an xa commit after preparing a read only transaction. The test case still
gives an ASSERT, and in my run caused a subseq... | [] |
derby-DERBY-4741-2c09e2c0 | DERBY-4741 Make embedded Derby work reliably in the presence of thread interrupts
Patch derby-4741-testBatchInterrupt-b:
It tests that an interrupt will stop a batch of statements by throwing
08000 just before we execute the next statement in the batch.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/tr... | [] |
derby-DERBY-4741-3a6f4cf9 | DERBY-4741 Make Derby work reliably in the presence of thread interrupts
Patch derby-4741-a-04-api-interruptstatus. This patch contains the new
helper class InterruptStatus and inserts calls to
restoreIntrFlagIfSeen in before API methods' return and in the
exception handling (TransactionResourceImpl#handleException).
... | [
{
"file": "java/engine/org/apache/derby/impl/jdbc/ConnectionChild.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.util.InterruptStatus;"
],
"header": "@@ -22,6 +22,7 @@",
"removed": []
}
]
},
{
"file": "java/engine/org/apache/der... |
derby-DERBY-4741-3abf75fd | DERBY-4741 Make embedded Derby work reliably in the presence of thread interrupts
Patch derby-4741-testQueryInterrupt.
* adds a new test case: InterruptResilienceTest#testLongQueryInterrupt
which tests that a query will check for the interrupt flag and throw
08000 (CONN_INTERRUPT) at the same time is checks for ... | [
{
"file": "java/engine/org/apache/derby/iapi/util/InterruptStatus.java",
"hunks": [
{
"added": [
" * flag to allow safe operation during execution, or if the interrupt",
" * status flag is set now. Called when operations want to be prematurely",
" * t... |
derby-DERBY-4741-482ff80f | DERBY-4967 Handle interrupt received while waiting for database lock
Patch derby-4967-locking-4 which makes the existing test
LockInterruptTest assert that the interrupt flag is set when we see
08000 (CONN_INTERRUPT) - in accordance with the behavior we expect
after DERBY-4741. The assert is skipped on Solaris/Sun Jav... | [] |
derby-DERBY-4741-5d974225 | DERBY-4741 Make Derby work reliably in the presence of thread interrupts
Patch derby-4741-sleeps-waits-3, which modifies all actions when
seeing interrupt in Object#wait and Thread#sleep inside
"org.apache.derby.impl.store.*" as well as in one other instance.
Thew new code just makes a note that an interrupt occured ... | [
{
"file": "java/engine/org/apache/derby/impl/sql/GenericStatement.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.util.InterruptStatus;"
],
"header": "@@ -42,6 +42,7 @@ import org.apache.derby.iapi.sql.dictionary.SchemaDescriptor;",
"removed": []
... |
derby-DERBY-4741-616c0d01 | DERBY-4741 Make Derby work reliably in the presence of thread interrupts
Patch derby-4741-raf-stresstest-4. This patch adds a new test fixture to
InterruptResilienceTest: multi-threaded read/write test under an interrupt
shower. This exercises primarily the random access file recovery
(RAFContainer4#recoverContainerA... | [
{
"file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java",
"hunks": [
{
"added": [
" // Interrupt recovery \"stealthMode\": If this thread holds a monitor on",
" //",
" // a) \"this\" (when RAFContainer#clean calls getE... |
derby-DERBY-4741-794fc707 | DERBY-4741 Make Derby work reliably in the presence of thread interrupts
Added missing copyright header to the newly introduced class InterruptStatus.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1030814 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/util/InterruptStatus.java",
"hunks": [
{
"added": [
"/*",
"",
" Derby - Class org.apache.derby.iapi.util.InterruptStatus",
"",
" Licensed to the Apache Software Foundation (ASF) under one or more... |
derby-DERBY-4741-b231544c | DERBY-4741 Make Derby work reliably in the presence of thread interrupts
Patch derby-4741-kristians-01, incorporating Kristian's comments. Should not change behavior.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1043802 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java",
"hunks": [
{
"added": [
" private final Object channelCleanupMonitor = new Object();"
],
"header": "@@ -79,7 +79,7 @@ class RAFContainer4 extends RAFContainer {",
"removed": [
... |
derby-DERBY-4741-bd018fd9 | DERBY-4741 Make Derby work reliably in the presence of thread interrupts
Patch derby-4741-c-01-nio: closes two corner cases I have
observed when stress testing the RAFContainer4 recovery mechanism. It
also does some other small cleanups. Regressions ran OK.
RAFContainer:
If we receive an interrupt when the container... | [
{
"file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java",
"hunks": [
{
"added": [
" protected ContainerKey idAPriori = null;",
"",
" synchronized boolean openContainer(ContainerKey newIdentity)",
" boolean success = fal... |
derby-DERBY-4741-c9528432 | DERBY-4769 Handle interrupt received while waiting for database lock
(subtask of DERBY-4741): Patch derby-4967-locking-1 which lets Derby
throw CONN_INTERRUPT if an interrupt is received while waiting for a
database lock.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1058245 13f79535-47bb-0310-99... | [
{
"file": "java/engine/org/apache/derby/impl/services/locks/LockSet.java",
"hunks": [
{
"added": [
" // If we were not woken by another then we have timed",
" // out. Either deadlock out or timeout. Or thread has",
" ... |
derby-DERBY-4741-ec9d167b | DERBY-4741 Make embedded Derby work reliably in the presence of thread interrupts
Patch derby-4741-sleeps-waits-more, which "regularizes" a few more
instances of interrrupt handling to follow the idiom established in
this issue's patches.
This leaves a few instances in BasicDaemon.java (as far as embedded
code is co... | [
{
"file": "java/engine/org/apache/derby/impl/db/SlaveDatabase.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.util.InterruptStatus;"
],
"header": "@@ -30,6 +30,7 @@ import org.apache.derby.iapi.jdbc.AuthenticationService;",
"removed": []
},
... |
derby-DERBY-4743-6819a865 | DERBY-4743 Attempt to access a DECLARE GLOBAL TEMPORARY TABLE after commit in an XA transaction in Network server fails.
The fix for DERBY-4731 made the behavior consistent across embedded and
network server. Derby does not support accessing global temporary tables
declared in an XA transaction subsequent to the co... | [] |
derby-DERBY-4743-af45571f | DERBY-4743
Checking in changes to XATest.java to repro this bug. The test case is currently
disabled. To enable it remove the x from:
public void xtestXATempTableD4743()
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@963931 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4748-7b374f98 | DERBY-4748: StringIndexOutOfBoundsException on syntax error (invalid COMMIT)
Rewrote logic in isolateAnyInitialIdentifier and added test case.
Patch contributed by Knut Anders Hatlen (knut dot hatlen at oracle dot com) and
Kristian Waagan (kristwaa at apache dot org).
Patch file: derby-4748-1b-sioobe.diff
git-svn... | [] |
derby-DERBY-475-14d5f009 | DERBY-475 Add a table driven mechanism to allow simple one argument
functions to be added easily. These functions exist only at runtime
in the SYSFUN schema and are resolved to with an explicit use of SYSFUN
or an unqualified functon name. Start off with a set of stanadard
functions from the java.lang.Math class.
gi... | [
{
"file": "java/engine/org/apache/derby/catalog/types/RoutineAliasInfo.java",
"hunks": [
{
"added": [],
"header": "@@ -122,7 +122,6 @@ public class RoutineAliasInfo extends MethodAliasInfo",
"removed": [
"\t\tsetAliasType();"
]
},
{
"added"... |
derby-DERBY-475-b7e5031d | DERBY-475 DERBY-592 Expand the builtin function table to handle zero parameter
functions and add the functions PI and LOG10 as builting and JDBC escaped functions.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@374471 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/SystemProcedures.java",
"hunks": [
{
"added": [
"\t",
"\t<P>",
"\tAlso used for builtin-routines, such as SYSFUN functions, when direct calls",
"\tinto Java libraries cannot be made."
],
"he... |
derby-DERBY-4752-49174a90 | DERBY-4752: CheapDateFormatter returns incorrect and invalid date strings
Use java.util.Calendar to get the calculations right.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@967000 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/util/CheapDateFormatter.java",
"hunks": [
{
"added": [
"import java.util.Calendar;",
"import java.util.Locale;",
"import java.util.TimeZone;",
"",
" private static final TimeZone GMT = TimeZone.ge... |
derby-DERBY-4752-6500326f | DERBY-4752: CheapDateFormatter returns incorrect and invalid date strings
Removed the CheapDateFormatter class and made the code use
java.util.Date and its toString() method instead.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@988874 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java",
"hunks": [
{
"added": [
"import java.util.Date;"
],
"header": "@@ -53,6 +53,7 @@ import java.sql.DriverManager;",
"removed": []
},
{
"added": [],
"heade... |
derby-DERBY-4753-7b6ad6da | DERBY-4753: "ERROR 42X01: Syntax error: FALSE." during call to java.sql.DatabaseMetaData.getIndexInfo
When recompiling a meta-data query after detecting that its plan is
stale, pass down a flag to the compiler to say that it's a meta-data
query and that use of internal syntax is allowed.
git-svn-id: https://svn.apach... | [
{
"file": "java/engine/org/apache/derby/iapi/sql/PreparedStatement.java",
"hunks": [
{
"added": [
" * @param forMetaData true if this is a meta-data query"
],
"header": "@@ -102,6 +102,7 @@ public interface PreparedStatement",
"removed": []
}
]
... |
derby-DERBY-4754-a2a0ff24 | DERBY-4754: Make the getObject() methods of Derby's LOBs always return jdbc LOBs.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@982585 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/SQLClob.java",
"hunks": [
{
"added": [
" /**",
" * @exception StandardException Thrown on error",
" */",
" public Object getObject() throws StandardException",
" {",
... |
derby-DERBY-4764-782dbe17 | DERBY-4764: Files with missing ASF license headers
Added or modified Apache license headers where missing or old.
Patch file: derby-4764-1a-license_headers_trunk.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@984922 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/tools/org/apache/derby/tools/PlanExporter.java",
"hunks": [
{
"added": [
"/*",
"",
" Derby - Class org.apache.derby.tools.PlanExporter",
"",
" Licensed to the Apache Software Foundation (ASF) under one or more",
" ... |
derby-DERBY-4767-4eeab6ca | DERBY-4767; Detailed prompt for Error CSL16 is different between Client and Embedded
adding a check for the value of the operation, and fixing up some areas where an incorrect operation value was passed on.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@986145 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/ResultSet.java",
"hunks": [
{
"added": [
" return getBoolean(findColumnX(columnName, \"getBoolean\"));"
],
"header": "@@ -1440,7 +1440,7 @@ public abstract class ResultSet implements java.sql.ResultSet,",
... |
derby-DERBY-4767-c9687fc4 | DERBY-4767; Detailed prompt for Error XCL16 is different between Client and Embedded
patch contributed by Yun Lee (yun dot lee dot bj at gmail dot com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@985550 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/ResultSet.java",
"hunks": [
{
"added": [
" checkForClosedResultSet(\"next\");"
],
"header": "@@ -293,7 +293,7 @@ public abstract class ResultSet implements java.sql.ResultSet,",
"removed": [
" ... |
derby-DERBY-4769-c9528432 | DERBY-4769 Handle interrupt received while waiting for database lock
(subtask of DERBY-4741): Patch derby-4967-locking-1 which lets Derby
throw CONN_INTERRUPT if an interrupt is received while waiting for a
database lock.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1058245 13f79535-47bb-0310-99... | [
{
"file": "java/engine/org/apache/derby/impl/services/locks/LockSet.java",
"hunks": [
{
"added": [
" // If we were not woken by another then we have timed",
" // out. Either deadlock out or timeout. Or thread has",
" ... |
derby-DERBY-4771-174db5a9 | DERBY-4771: Continue investigation of automatic creation/update of index statistics.
Removed unused method getRowEstimate.
Spotted by Dag H. Wanvik (dag dot wanvik at oracle dot com).
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1042461 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/QueryTreeNode.java",
"hunks": [
{
"added": [],
"header": "@@ -579,23 +579,6 @@ public abstract class QueryTreeNode implements Visitable",
"removed": [
"\t/**",
"\t * Get the optimizer's estimate of the... |
derby-DERBY-4772-4771f1f4 | DERBY-4772: Data truncation error with XPLAIN-functionality enabled
Increased max length of string fields with undefined max lenghts to the
maximum allowed length of the VARCHAR data type (and also changed the data
type from CHAR to VARCHAR).
Patch file: derby-4772-1b-increase_max_len.diff
git-svn-id: https://svn... | [
{
"file": "java/engine/org/apache/derby/impl/sql/catalog/XPLAINResultSetDescriptor.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.TypeId;"
],
"header": "@@ -26,7 +26,7 @@ import java.sql.SQLException;",
"removed": [
"import org.ap... |
derby-DERBY-4772-f1c83832 | DERBY-4772 (cleanup): Data truncation error with XPLAIN-functionality enabled
Cleaned up a bunch of unused imports, some unused variables and removed an
Exception.printStackTrace().
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1027921 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/xplain/XPLAINSystemTableVisitor.java",
"hunks": [
{
"added": [],
"header": "@@ -28,22 +28,15 @@ import java.sql.Timestamp;",
"removed": [
"import java.util.Properties;",
"import org.apache.derby.jdbc.I... |
derby-DERBY-4779-d9a720b2 | DERBY-4779: Commit patch contributed by Siddharth Srivastava which eliminates an NPE caused by the interaction of generated columns and triggers.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1140222 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4781-11ab591f | DERBY-4781 suites.All fails completely with Failed to invoke suite():java.lang.reflect.InvocationTargetException because of XplainStatisticsTest
Change getADocument() to return an Object instead of Document so weme does not fail to load the class.
Contributed by Knut Anders Hatlen
git-svn-id: https://svn.apache.o... | [] |
derby-DERBY-4781-158ccc5d | DERBY-4781: suites.All fails completely with Failed to invoke suite():java.lang.reflect.InvocationTargetException because of XplainStatisticsTest
Fixed replace() method. The old version would sometimes erroneously
return an empty string.
Patch contributed by Nirmal Fernando <nirmal070125@gmail.com>.
git-svn-id: htt... | [
{
"file": "java/tools/org/apache/derby/impl/tools/planexporter/AccessDatabase.java",
"hunks": [
{
"added": [
" \t int idx = stmt.indexOf(expr);",
" \t while (idx >= 0)",
" \t {",
" \t stmt = stmt.substring(0, idx) + replace + stmt.substring... |
derby-DERBY-4781-b1b255cc | DERBY-4781 (partial) Fix XplainStatisticsTest failure with J2ME on split method
introduced by DERBY-4587
Contributed by C.S. Nirmal J Fernando ( nirmal070125 at gmail dot com )
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@988264 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/tools/org/apache/derby/impl/tools/planexporter/AccessDatabase.java",
"hunks": [
{
"added": [
" \tif(stmt.indexOf(expr)!=-1){",
" \t\tstmt=stmt.substring(0, stmt.indexOf(expr))",
" \t\t+replace+stmt.substring(stmt.indexOf(expr)+1);",
... |
derby-DERBY-4786-04243ad4 | DERBY-4786 (Shutdown command without username and password should work with mixed client and network server releases.)
This change will send shutdown command with protocol level 2 whether there is username or password provided or not. If this command fails because of DRDA_InvalidReplyHead from server, then it will res... | [
{
"file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java",
"hunks": [
{
"added": [
"\t//All the commands except shutdown with username and password are at ",
"\t//protocol level 1. ",
"\tprivate final static int DEFAULT_PROTOCOL_VERSION = 1;",... |
derby-DERBY-4789-66f38fa6 | DERBY-4789 Add more tests for bulk insert on self join, union, left outer join and expected results.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@996700 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4789-d7ee7fac | DERBY-4789: Attempt bulk-insert optimization when inserting from a table function.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@993374 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-479-3905037d | DERBY-479 Fix linkage error when passing the value of a RETURNS NULL ON NULL INPUT function
to another function. Fixed by only removing SQLToJava/JavaToSQL nodes for the function's
return value when the function is a CALLED ON NULL INPUT function.
Fix contributed by Mamta Satoor - msatoor@gmail.com
git-svn-id: https... | [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/MethodCallNode.java",
"hunks": [
{
"added": [
"\t\t\t** Since we need the parameter to be in Java domain format, put a",
"\t\t\t** SQLToJavaValueNode on top of the parameter node if it is a ",
"\t\t\t** SQLV... |
derby-DERBY-4791-19984411 | DERBY-4791 (partial) LIKE operator optimizations and concatenation
Made ConcatenationOperatorNode capable of constant folding so that for
example 'ab' || '%' can be handled the same way as 'ab%'.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@993074 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ConcatenationOperatorNode.java",
"hunks": [
{
"added": [
" /**",
" * Check if this node always evaluates to the same value. If so, return",
" * a constant node representing the known result.",
... |
derby-DERBY-4798-a823c6a8 | DERBY-4712 Complex nested joins problems
Patch DERBY-4712b, which removes one of the source for NPE seen by the reporter.
The other is covered by DERBY-4798.
A corner case: the patch makes an inner join which decides it is not
flattenable, propagate this fact down to any nested outer join nodes
containing nested inne... | [] |
derby-DERBY-4798-d9dd1e59 | DERBY-4798 NPE in nested outer join
Patch derby-4798a.
Reintroduces the bailout code in BaseActivation#getColumnFromRow which
was removed in DERBY-3097 until we understand why it is needed.
Adds the repro for this issue to OuterJoinTest
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@998170 13f7... | [] |
derby-DERBY-48-4d8deb63 | DERBY-48 A connection request that has a default schema that is being created by another transaction will fail to connect
Patch derby-48-7, which auto-creates the schema in a nested transaction if possible, thus
allowing early release of write locks used to auto-create the schema.
This has the side-effect of making a... | [
{
"file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java",
"hunks": [
{
"added": [
"\t\t\t\t\t\tfalse,",
"\t\t\t\t\t\ttc);"
],
"header": "@@ -1522,7 +1522,8 @@ public final class\tDataDictionaryImpl",
"removed": [
"\... |
derby-DERBY-48-9e04f690 | DERBY-48 A connection request that has a default schema that is being created by another transaction will fail to connect
Patch derby-48b, which limits the use of a subtransaction to the
initial default schema, other implicit schema creation is
transactional. A new testcase is added to show the latter.
git-svn-id: h... | [] |
derby-DERBY-48-ddae94a2 | DERBY-48 A connection request that has a default schema that is being created by another transaction will fail to connect
Follow-up patch to svn 685141, which accidentally committed the wrong patch revision.
With this patch, the net effect is DERBY-48b-1 which should have been committed.
git-svn-id: https://svn.apac... | [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/DDLConstantAction.java",
"hunks": [
{
"added": [
"\t\t\tCreateSchemaConstantAction csca",
"\t\t\t\t= new CreateSchemaConstantAction(schemaName, (String) null);",
"\t\t\t\t// DERBY-48: This operation creates ... |
derby-DERBY-4803-30dd4c58 | DERBY-4803: Make it possible to use sequences in INSERT...SELECT statements.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@999908 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-4804-0d6a26d8 | DERBY-4804: Make database used in store.OSReadOnlyTest fully read-only
Properly simulate a read-only media.
Since Java cannot make a file writeable after first making it read-only until
Java SE 6, the db.lck file (with invalid contents) was created and made
read-only instead.
Patch file: derby-4804-1a-test_change.dif... | [] |
derby-DERBY-4804-c7b35898 | DERBY-4804: Make database used in store.OSReadOnlyTest fully read-only
Followup patch moving file operation code into PrivilegedFileOpsForTests,
since it is probably useful for other tests as well.
Also note the new assert-method in BaseJDBCTestCase, used to assert that a
directory is fully deleted.
Patch file: derb... | [] |
derby-DERBY-4805-813aa38e | DERBY-4805(Increase the length of the RDBNAM field in the DRDA implementation)
This commit will allow RDBNAM to be 1024 bytes, thus lifting the limit from current 255bytes. I have changed the existing boundary test case to test for the new limit but the tests now use in-memory db jdbc url since on disk long urls were ... | [
{
"file": "java/client/org/apache/derby/client/am/ClientDatabaseMetaData.java",
"hunks": [
{
"added": [
" /**",
" * DERBY-4805(Increase the length of the RDBNAM field in the DRDA ",
" * implementation) ",
" * True if the server supports... |
derby-DERBY-4806-7a7a289e | DERBY-4806 DERBY-4597 removes references to IBM jcc driver on Main.java, fixing extracting derbyTesting.jar information when it is not in the same directory as derbyrun.jar
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1002682 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/tools/org/apache/derby/impl/tools/sysinfo/Main.java",
"hunks": [
{
"added": [
""
],
"header": "@@ -139,9 +139,9 @@ public static void getMainInfo (java.io.PrintWriter aw, boolean pause) {",
"removed": [
""
]
},
{
... |
derby-DERBY-4808-ce433402 | DERBY-4808; write a test that checks that optional packages are in place and clearly exposes when this is not the case
Adding some more checks to the EnvTest, plus modifying output mechanism
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1603557 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-481-15b837ec | DERBY-481: Cleanup based on comments from Dag and Knut.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@719760 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/DMLModStatementNode.java",
"hunks": [
{
"added": [
" *",
" * @param targetRCL the row in the table being INSERTed or UPDATEd",
" * @param forUpdate true if this is an UPDATE. false otherwise.",... |
derby-DERBY-481-291f9137 | DERBY-481: Add tests for altering the datatype of generated columns and of the columns they depend on.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@711663 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-481-2a0827ac | DERBY-481: Forbid generation clauses which reference generated columns.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@709219 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/CreateTableNode.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.services.io.FormatableBitSet;"
],
"header": "@@ -25,6 +25,7 @@ import org.apache.derby.iapi.reference.Property;",
"removed": [... |
derby-DERBY-481-3c09be76 | DERBY-481: Prevent users from dropping a function mentioned in a generation clause.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@712840 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/TableElementList.java",
"hunks": [
{
"added": [
"\tpublic int genColumnInfos( ColumnInfo[] colInfos)",
" throws StandardException"
],
"header": "@@ -430,7 +430,8 @@ public class TableElementList... |
derby-DERBY-481-45c66917 | DERBY-481: Add tests to verify that you can't use updatable ResultSets to corrupt generated columns.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@719656 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-481-4e6df7ab | DERBY-481: Incorporate Dag's patch review feedback.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@722214 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/NoRowsResultSetImpl.java",
"hunks": [
{
"added": [
" private int firstColumn = -1; // First column being stuffed. For UPDATES, this lies in the second half of the row.",
" private ... |
derby-DERBY-481-5a0cfa25 | DERBY-481: Generation clauses may not invoke functions which run SQL.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@709415 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/compile/CompilerContext.java",
"hunks": [
{
"added": [
"\tpublic static final int\t\t\tSQL_IN_ROUTINES_ILLEGAL\t\t=\t0x00002000;"
],
"header": "@@ -100,6 +100,7 @@ public interface CompilerContext extends Context",
... |
derby-DERBY-481-7101c06c | DERBY-481: Add negative test cases for generation clauses which mention CURRENT SCHEMA and CURRENT SQLID.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@714188 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-481-9188c1cc | DERBY-481: Catalog changes supporting generated columns.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@707414 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/DefaultInfo.java",
"hunks": [
{
"added": [
"\t/**",
"\t * If this default is a generation clause, then return the 1-based ids of",
"\t * other columns in the row which the generation clause references.",
"\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.