id
stringlengths
22
25
commit_message
stringlengths
137
6.96k
diffs
listlengths
0
63
derby-DERBY-5121-6f271b4b
DERBY-1482/DERBY-5121 Rick Hillegas contributed a trigger test for DERBY-1482/DERBY-5121. With revision 1125453, that test was added to Changes10_8 but this test really is applicable for upgrades from all releases and should not be added into a specific version upgrade test. As a result, I am moving the test from Chan...
[]
derby-DERBY-5121-c1193bf7
DERBY-5121 Data corruption when executing an UPDATE trigger Committing changes to back out DERBY-1482 out of trunk(10.8 codeline). The changes have already been backed out of 10.7). In addition to engine code backport, it will also disable the tests that were added for DERBY-1482. With DERBY-1482, these tests would n...
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java", "hunks": [ { "added": [ "\t\t// DERBY-1482 has caused a regression which is being worked", "\t\t// under DERBY-5121. Until DERBY-5121 is fixed, we want", "\t\t// Derby to create tri...
derby-DERBY-5121-df731e99
DERBY-5121 Data corruption when executing an UPDATE trigger Changes made for DERBY-1482 caused corruption which is being worked under DERBY-5121. The issue is that the generated trigger action sql could be looking for columns (by positions, not names) in incorrect positions. With DERBY-1482...
[]
derby-DERBY-5133-8709c8a9
DERBY-5133; nightly test failure in derbyall/storeall/storemore/SpaceTable addressing review input; using JDBCTestCase.dropTable(), simplifying the retry and eliminating the code duplication, and adjusting comments. Also addresses failure with Java8 because of different test case sequence. git-svn-id: https://s...
[]
derby-DERBY-5139-84349af5
DERBY-5101: TruncateTableTest depends on implicit ordering of test cases Added a workaround for DERBY-5139 so that the test doesn't fail when testSelfReferencing runs first. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1082428 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-514-1ba0984d
DERBY-2242 ; remove metadata.java, metadata_test.java and odbc_metadata.java. Test has been converted to junit test DatabaseMetaDataTest. Also removed master file PhaseTester.out, orphaned from rev 407396 (DERBY-514) git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@597464 13f79535-47bb-0310-9956-f...
[]
derby-DERBY-514-5935349d
DERBY-514: get upgrade tests working with the test harness. Submitted derby-514-patch3-v2.diff Committed for Deepa Remesh <dremesh@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@394157 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-514-6d02108f
DERBY-514: Enable upgrade tests to work with unpackaged classes. Add upgrade tests to derbyall. Committed for Deepa Remesh <dremesh@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@407396 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-514-7095131a
DERBY-514 Integrate upgrade tests into test suite Contributed by Deepa Remesh. Attaching a patch 'derby-514-patch2-runtest-v1.diff' which enables the upgrade test to run with the test harness. Summary: * findCodeBase method in harness/jvm.java is changed to public. This method is used by upgrade test to get the loca...
[]
derby-DERBY-5141-a5357587
DERBY-5141 SSLTest fails with java.net.SocketException: Default SSL context init failed: null Add some verbosity to NetworkServerTestSetup to show the server start command with -Dderby.tests.debug=true. This does not fix the issue. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1085078 13f79535-4...
[ { "file": "java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java", "hunks": [ { "added": [ "import org.apache.derbyTesting.junit.BaseTestCase;" ], "header": "@@ -33,6 +33,7 @@ import java.security.PrivilegedExceptionAction;", "removed": [] ...
derby-DERBY-5143-c85d4650
DERBY-5143: Remove unnecessary copying of the map in getTypeMap() - made the JDBC 4.0 overrides of getTypeMap() just call super.getTypeMap(), and added SuppressWarnings annotation to silence the unchecked conversion warnings in the overridden methods - made the client implementation return EMPTY_MAP (immutable) i...
[ { "file": "java/client/org/apache/derby/client/am/Connection.java", "hunks": [ { "added": [ "import java.util.Collections;" ], "header": "@@ -26,6 +26,7 @@ import org.apache.derby.jdbc.ClientDataSource;", "removed": [] } ] }, { "file": "java/...
derby-DERBY-5145-87baa305
DERBY-5145: Provide option to limit compatibility test to combinations that include trunk git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1132648 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-515-cd5e376d
DERBY-515 Network Server should log server start and shutdown time to derby.log Patch contributed by Deepa Remesh. Summary of patch: * Removes identical master files in DerbyNetClient and DerbyNet for derbynet/NSinSameJVM.java and moves it the top master directory. * Modified tools/release/build.xml to point to the...
[ { "file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java", "hunks": [ { "added": [ "\t\t", "\t\t\t\t\tgetFormattedTimestamp()});" ], "header": "@@ -561,10 +561,10 @@ public final class NetworkServerControlImpl {", "removed": [ ...
derby-DERBY-5152-4e72f55c
DERBY-5152 Shutting down db, information that the thread received an interrupt will not be restored to thread's interrupt flag Patch derby-5152-b. When a thread receives an interrupt Derby detects this, it will reset the thread's flag and save the fact in its lcc (LanguageConnectionContext), if available. If not (e.g....
[ { "file": "java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.util.InterruptStatus;" ], "header": "@@ -75,6 +75,7 @@ import org.apache.derby.iapi.sql.ParameterValueSet;", "re...
derby-DERBY-5153-a899bbc8
DERBY-5153: Intermittent ASSERT FAILED Internal Error-- statistics not found in selectivityForConglomerate when running InterruptResilienceTest Removed the failing asserts and enabled the test case that exercises the code. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1088495 13f79535-47bb-0310-995...
[ { "file": "java/engine/org/apache/derby/iapi/sql/dictionary/TableDescriptor.java", "hunks": [ { "added": [ " * However, no locks are held to prevent the statistics from being dropped,", " * so the method also handles the case of missing statistics by using a", ...
derby-DERBY-5153-ae1478de
DERBY-5153: Intermittent ASSERT FAILED Internal Error-- statistics not found in selectivityForConglomerate when running InterruptResilienceTest Added regression test case that reproduces the bug. Disabled for now. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1087636 13f79535-47bb-0310-9956-ffa450e...
[]
derby-DERBY-5157-42114dab
DERBY-5280: Large batch of DDL in a database procedure dies on a transaction severity error Backed out the fix for DERBY-5161 since it's causing a regression and shouldn't be needed after DERBY-5157. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1138787 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5157-cac43eee
DERBY-5157: Incomplete quoting of SQL identifiers in AlterTableConstantAction git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1086526 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/AlterTableConstantAction.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.util.StringUtil;" ], "header": "@@ -84,6 +84,7 @@ import org.apache.derby.iapi.types.DataTypeDescriptor;", "removed":...
derby-DERBY-5158-86226a22
DERBY-5158 Incomprehensible error message on client if attempting rollback after database has been shut down. Scenario: app code calling client JDBC connection commit or rollback after the database has been shut down. In the commit case the issue and fix only applies if a transaction has been started, since otherwise ...
[ { "file": "java/client/org/apache/derby/client/net/NetConnectionReply.java", "hunks": [ { "added": [ " parseENDUOWRM(connection);", " peekCP = parseTypdefsOrMgrlvlovrs();", " if (peekCP == CodePoint.SQLCARD) {", " NetSqlca...
derby-DERBY-5159-00306c2e
DERBY-5159: ParameterMetaDataJdbc30Test fails with "'PMDD' is not recognized as a function or procedure" Create shared procedure in the decorator so that the test cases that need it can find it regardless of the order of execution. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1086559 13f79535-47bb...
[]
derby-DERBY-5161-42114dab
DERBY-5280: Large batch of DDL in a database procedure dies on a transaction severity error Backed out the fix for DERBY-5161 since it's causing a regression and shouldn't be needed after DERBY-5157. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1138787 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5165-dc57c1f4
DERBY-5165; Prepared XA transaction locks are not kept across DB restart Adding License comment to the test git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1624105 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5168-98ec83ef
DERBY-5168: Wrong syntax in identifier chain returned by SynonymAliasInfo.toString() git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1087641 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/catalog/types/SynonymAliasInfo.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.util.IdUtil;" ], "header": "@@ -23,6 +23,7 @@ package org.apache.derby.catalog.types;", "removed": [] } ] } ]
derby-DERBY-517-3a3105b7
DERBY-517 ResultSet - relative(int rows) behaves different in embedded and client/server mode when the positioning before the first row or after the last row. Submitted by Fernanda.Pizzorno@Sun.COM git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@348192 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/ResultSet.java", "hunks": [ { "added": [ " ", " // Keep maxRows in the ResultSet, so that changes to maxRow in the statement", " // do not affect the resultSet after it has been created", " pr...
derby-DERBY-5170-11468253
DERBY-5170: Client doesn't handle double quotes in savepoint names Moved helper method that quoted SQL identifiers from ResultSet to a utility class, and made Connection use that method to quote savepoint names. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1088500 13f79535-47bb-0310-9956-ffa450ede...
[ { "file": "java/client/org/apache/derby/client/am/Connection.java", "hunks": [ { "added": [ " stmt.executeX(", " \"SAVEPOINT \" + Utils.quoteSqlIdentifier(savepointName) +", " \" ON ROLLBACK RETAIN CURSORS\");" ...
derby-DERBY-5172-6e591dc9
DERBY-5172: testTimeAndDateWithCalendar (jdbcapi.CallableTest) fails intermittently with AssertionFailedError: hour expected: differs from actual. Make the test convert between timezones via the local timezone, like Derby does when passing a timestamp through a stored procedure. git-svn-id: https://svn.apache.org/rep...
[]
derby-DERBY-5173-3c7c7402
DERBY-5173: RAFContainer.privGetRandomAccessFile() unwraps wrong exception type Made run() wrap IOExceptions in StandardExceptions to prevent ClassCastException in the error handler. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1088491 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java", "hunks": [ { "added": [ "import java.io.FileNotFoundException;" ], "header": "@@ -54,6 +54,7 @@ import java.util.Vector;", "removed": [] }, { "added": [ ...
derby-DERBY-5185-1cfe34ee
DERBY-5185 store/rollForwardRecovery.sql stuck in RAFContainer4.recoverContainerAfterInterrupt() during shutdown Patch derby-5185-2b which fixes state a state maintenance bugs (in threadDoingRestore/restoreChannelInProgress) maintenance when throwing FILE_IO_INTERRUPTED. The first fixes the immediate problem. It also...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java", "hunks": [ { "added": [ " // then. Otherwise protected by channelCleanupMonitor. Debugging value not", " // safe on 1.4, but who cares.." ], "header": "@@ -87,7 +87,8 @@ c...
derby-DERBY-5185-4afad93f
DERBY-5185 store/rollForwardRecovery.sql stuck in RAFContainer4.recoverContainerAfterInterrupt() during shutdown Patch derby-5185-1a.diff. Avoid waiting forever in the loop in recoverContainerAfterInterrupt where we wait for other concurrent threads to hit the wall (having seen ClosedChannelException), i.e. so we know...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java", "hunks": [ { "added": [ " // (ClosedChannelException) and are a ready waiting for us to clean up,", " // so we can set them loose when we're done.", " int retries...
derby-DERBY-5185-a768c94c
DERBY-5185 store/rollForwardRecovery.sql stuck in RAFContainer4.recoverContainerAfterInterrupt() during shutdown Follow-up patch derby-5185-3a which contains safe guard limits to two loops waiting for a condition variable: wait maximum one minute to avoid infinite hangs. git-svn-id: https://svn.apache.org/repos/asf...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java", "hunks": [ { "added": [ " int retries = MAX_INTERRUPT_RETRIES;", "" ], "header": "@@ -308,6 +308,8 @@ class RAFContainer4 extends RAFContainer {", "remove...
derby-DERBY-5189-589b21f0
DERBY-5189: PropertySetter should ignore GCJ installations git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1092333 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/build/org/apache/derbyPreBuild/PropertySetter.java", "hunks": [ { "added": [ " // Search the versions backwards (highest first) until a usable one", " // is found.", " for (int i = count - 1; i >= 0; i--) {", " ...
derby-DERBY-5196-586ae9de
DERBY-5196; Correct the layout of log.ctrl as described on the Derby web site fixing the header in the source file git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1550525 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java", "hunks": [ { "added": [ "\t\t (logfile counter, position)", "\t\tint Derby major version", "\t\tint Derby minor version", "\t\tint subversion revision/build number", ...
derby-DERBY-5210-f6e1e6f9
DERBY-5210: Use java.nio.ByteBuffer in client.net.Request git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1102730 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/SignedBinary.java", "hunks": [ { "added": [], "header": "@@ -25,9 +25,6 @@ public class SignedBinary {", "removed": [ " /** Maximum value that cen be encoded by 6 bytes (signed). */", " public static fi...
derby-DERBY-5213-898c8da7
DERBY-5213; Write tests to verify the interaction of TRUNCATE TABLE and online backup - add a third fixture, which tests an uncommitted truncate table followed by freeze/copy/unfreeze - remove the decorateSQL method and moves the creation and population of the truncable table to setUp(), and drops the table in tear...
[]
derby-DERBY-5222-c4521269
DERBY-5222: Compatibility tests fail to delete database directory Wait for all forked processes to complete before testing the next combination. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1103742 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5222-e411e977
DERBY-5222: Compatibility tests fail to delete database directory Use BaseTestCase.removeDirectory() to delete the database directory so that we get more details in the log when something goes wrong. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1101059 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5223-a00a0313
DERBY-5223 Thread's interrupted flag not always preserved after Derby returns from JDBC API call Patch DERBY-5223b: This fix moves the initialization of the variable "interruptedException" earlier in GenericLanguageConnectionContext#initialize and adds a missing reinitialization to resetFromPool as a precaution (if in...
[ { "file": "java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java", "hunks": [ { "added": [ " interruptedException = null;" ], "header": "@@ -377,6 +377,7 @@ public class GenericLanguageConnectionContext", "removed": [] }...
derby-DERBY-5224-7af858da
DERBY-5224: reduce cohesion by removing overzealous casting Contributed by Dave Brosius <dbrosius@apache.org>. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1102679 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/services/locks/LockTableVTI.java", "hunks": [ { "added": [ "\t\t\t\tlock = (Latch) grantedList.next();" ], "header": "@@ -100,10 +100,9 @@ class LockTableVTI implements Enumeration", "removed": [ "//System...
derby-DERBY-5232-0dfad316
DERBY-5232 (Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there) Adding a test case for default database creation with the checks for the existence of the 3 readme files. These readmes warn users against editing/deleting any of the files in the data...
[]
derby-DERBY-5232-1bb2c59c
DERBY-5232 (Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there) This commit fixes a)a typo in the readme file content. b)uses OutputStreamWrtier to deal with UTF-8 encoding for the readme files. c)fixes the if condition used to create readme files...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/RawStore.java", "hunks": [ { "added": [ "import java.io.OutputStream;" ], "header": "@@ -75,7 +75,7 @@ import java.io.Serializable;", "removed": [ "" ] }, { "added": [...
derby-DERBY-5232-393f243f
DERBY-5232 (Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there) The earlier commit caused test failures because readme file creation was not getting done inside a privileged block. This commit fixes that problem and it was also fixes so typo and ge...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/RawStore.java", "hunks": [ { "added": [ " private String activePerms;" ], "header": "@@ -149,6 +149,7 @@ public final class RawStore implements RawStoreFactory, ModuleControl, ModuleSup", "removed": [] ...
derby-DERBY-5232-651c99e8
DERBY-5232 (Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there) This will create 3 readme(README_DONT_TOUCH_FILES.txt) files at database creation time, One at the database level, one in the "log" directory and another in the "seg0" directory. a)Co...
[ { "file": "java/engine/org/apache/derby/iapi/services/monitor/PersistentService.java", "hunks": [ { "added": [ " /**", " The readme file cautioning users against touching the files in", " the database directory ", " */", " ...
derby-DERBY-5232-ce0c0aed
DERBY-5232 (Put a stern README file in log and seg0 directories to warn users of corrpution they will cause if they touch files there) Remove redundant file length check on readme files. It is sufficient to check that they exist. Additionally, assert the value returned by file exists method. git-svn-id: https://svn...
[]
derby-DERBY-5233-6e61723e
DERBY-5233 Interrupt of create table or index (i.e. a container) will throw XSDF1 under NIO - connection survives Patch DERBY-5233-2: The patch makes RAFContainer, when seeing an interrupt exception during container creation, close it down and try again, up to MAX_INTERRUPT_RETRIES times. Since RAFContainer should wor...
[]
derby-DERBY-5234-355ebf60
DERBY-5234: Add edge case tests for compression-related data corruption. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1335677 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5236-52660564
DERBY-5236: Client driver silently truncates strings that exceed 32KB Test case for the bug. Currently disabled. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1104365 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5236-7aa76512
DERBY-5236: Client driver silently truncates strings that exceed 32KB Prepare the network client for the possibility that a column is split over more than two blocks in the response. This cannot happen until a fix that makes the server stop sending truncated strings, has been checked in. git-svn-id: https://svn.apach...
[ { "file": "java/client/org/apache/derby/client/net/NetCursor.java", "hunks": [ { "added": [ " checkForSplitRowAndComplete(4);" ], "header": "@@ -413,18 +413,7 @@ public class NetCursor extends org.apache.derby.client.am.Cursor {", "removed": [ ...
derby-DERBY-5236-9b3e218c
DERBY-5236: Client driver silently truncates strings that exceed 32KB Disable the fix when talking to old clients because they may get a StringIndexOutOfBoundsException if they receive longer strings, and they also don't know exactly how to handle java.sql.DataTruncation warnings. git-svn-id: https://svn.apache.org/r...
[ { "file": "java/drda/org/apache/derby/impl/drda/DDMWriter.java", "hunks": [ { "added": [ " // Find out how long strings the client supports, and possibly", " // truncate the string before sending it.", "", " int maxByteLength = MAX_V...
derby-DERBY-5236-b8501198
DERBY-5236: Client driver silently truncates strings that exceed 32KB Add a java.sql.DataTruncation warning to the result if a string was truncated. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1167017 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/SqlException.java", "hunks": [ { "added": [], "header": "@@ -22,7 +22,6 @@", "removed": [ "import java.util.TreeMap;" ] } ] }, { "file": "java/client/org/apache/derby/client/am/Sqlca.java", ...
derby-DERBY-5236-c6e42941
DERBY-5236: Client driver silently truncates strings that exceed 32KB Truncate the strings at 65535 bytes instead of 32700 bytes, and make sure that the truncation happens on a character boundary. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1164495 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DDMWriter.java", "hunks": [ { "added": [ " /**", " * The maximum length in bytes for strings sent by {@code writeLDString()},", " * which is the maximum unsigned integer value that fits in two bytes.", ...
derby-DERBY-5238-902725f1
DERBY-5238 VARCHAR size typos in some documentation topics Modified comments in three Java source files. Patches: DERBY-5238-2.diff git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1125447 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/catalog/SystemProcedures.java", "hunks": [ { "added": [ "\t * IN INSERTCOLUMNLIST VARCHAR(32672), IN COLUMNINDEXES VARCHAR(32672),", "\t * IN FILENAME VARCHAR(32672), IN COLUMNDELIMITER CHAR(1), "...
derby-DERBY-5240-9ef6c29f
DERBY-5240 (Log Operating system information to derby.log on boot) Adding following piece of information into derby.log for OS right after the existing info about JVM OS name=XXX OS architecture=YYY OS version=ZZZ git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1371041 13f79535-47bb-0310-9956-f...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/BaseDataFileFactory.java", "hunks": [ { "added": [ "\tprivate String osInfo;", "\t" ], "header": "@@ -135,6 +135,8 @@ public class BaseDataFileFactory", "removed": [] }, ...
derby-DERBY-5244-be3da0b3
DERBY-5244 DERBY-5244 DatabaseMetaData.getColumns(null, null, tableName, null) does not return the columns meta for a SYNONYM. This is because for Adding test case for views. The test comments for table, views and synonym is as follows * DERBY-5244 DatabaseMetaData.getColumns(null, null, tableName, null) *...
[]
derby-DERBY-5244-be72b144
DERBY-5244 DatabaseMetaData.getColumns(null, null, tableName, null) does not return the columns meta for a SYNONYM Adding a test case which confirms the behavior noticed by DERBY-5244. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1199096 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5246-6d90df09
DERBY-5246: Simplify bytecode generation for concatenation operator git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1127886 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java", "hunks": [ { "added": [], "header": "@@ -600,9 +600,6 @@ public class BinaryOperatorNode extends OperatorNode", "removed": [ "\t\t\t//following method is special code for concatenation ...
derby-DERBY-5248-45b5ae15
DERBY-5258 Fixing row level btree postcommit reclaim space to hold latch until end of the internal transaction. Before this fix there was a very small window (a few instructions) between the release of the latch and the commit of the transaction where another transaction could access the page, insert rows, and if a c...
[ { "file": "java/engine/org/apache/derby/impl/store/access/btree/BTreePostCommit.java", "hunks": [ { "added": [ " TransactionManager internal_xact = tc.getInternalTransaction();" ], "header": "@@ -207,7 +207,7 @@ class BTreePostCommit implements Serviceable", ...
derby-DERBY-5249-8d26b674
DERBY-5249 A table created with 10.0.2.1 with constraints cannot be dropped with 10.5 due to NullPointerException with insane build or ASSERT FAILED Failed to find sharable conglomerate descriptor for index conglomerate with sane build git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1131272 13f79535...
[]
derby-DERBY-5249-94d3c58f
DERBY-5249 A table created with 10.0.2.1 with constraints cannot be dropped with 10.5 due to NullPointerException with insane build or ASSERT FAILED Failed to find sharable conglomerate descriptor for index conglomerate with sane build Add a test for this issue. The test xtestDropTableAfterUpgradeWithConstraint() is n...
[]
derby-DERBY-525-1022f8fc
DERBY-525 - getAsciiStreamshould replace non-ASCII characters with 0x3f, '?' to match embedded - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp) git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@292414 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/ResultSet.java", "hunks": [ { "added": [ "\t\t", "\t\tresult = new java.io.ByteArrayInputStream", "\t\t\t(convertToAsciiByteArray((String) agent_.crossConverters_.setObject(java.sql.Types.CHAR,", "\t\t\t\...
derby-DERBY-525-8ecffdda
- DERBY-525_3 getAsciiStreamshould replace non-ASCII characters with 0x3f, '?' to match embedded - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp) git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@329372 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/AsciiStream.java", "hunks": [ { "added": [ "import java.io.StringReader;", "", "\t", "\tpublic AsciiStream(String materializedString){", "\t\tthis(materializedString,new StringReader(materialize...
derby-DERBY-5252-f1512cdd
DERBY-5252: make GrantRevokeTest pass in non-English locale This patch was contributed by Houx Zhang (houxzhang at gmail dot com) This change adjusts 4 places in the test to compare the actual error message text only if the test is running in the English locale. This enables the test to pass when run in non-English ...
[]
derby-DERBY-5254-ab49fa3c
DERBY-5254: Unreserve the keywords which were added as part of implementing sequences. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1130127 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5256-67790a0e
DERBY-5256: Improve error reporting in common.sanity.AssertFailure Added more specific error reporting, and fixed code that could result in an NPE under some circumstances. Patch file: derby-5256-1a-error_reporting.diff git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1130964 13f79535-47bb-0310-99...
[ { "file": "java/shared/org/apache/derby/shared/common/sanity/AssertFailure.java", "hunks": [ { "added": [ " /**", " * Tells if generating a thread dump is supported in the running JVM.", " */", " private boolean supportsThreadDump() {", ...
derby-DERBY-5258-45b5ae15
DERBY-5258 Fixing row level btree postcommit reclaim space to hold latch until end of the internal transaction. Before this fix there was a very small window (a few instructions) between the release of the latch and the commit of the transaction where another transaction could access the page, insert rows, and if a c...
[ { "file": "java/engine/org/apache/derby/impl/store/access/btree/BTreePostCommit.java", "hunks": [ { "added": [ " TransactionManager internal_xact = tc.getInternalTransaction();" ], "header": "@@ -207,7 +207,7 @@ class BTreePostCommit implements Serviceable", ...
derby-DERBY-5260-5f5bc5fb
DERBY-5260 Remove unused "replace" argument to backup variant of StorageFactoryService#saveServiceProperties The patch "saveServiceProperties-1" removes redundant code. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1133123 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/services/monitor/StorageFactoryService.java", "hunks": [ { "added": [ "", " /**", " * Save service.properties during backup", " *", " * @arg serviceName backup location of the service"...
derby-DERBY-5263-ae72a308
DERBY-6003: Create row templates outside of the generated code Upgrade test fix in preparation for the actual fix for this issue. Improve SYSCS_INVALIDATE_STORED_STATEMENTS by making it null out the plans in SYS.SYSSTATEMENTS. Previously, it only marked them as invalid. Use the improved SYSCS_INVALIDATE_STORED_STATE...
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java", "hunks": [ { "added": [ " * @param recompile Whether to recompile or invalidate" ], "header": "@@ -4429,6 +4429,7 @@ public final class\tDataDictionaryImpl", "removed": [] ...
derby-DERBY-5267-e39eee71
DERBY-5267: Shut down engine for old versions in upgrade tests to save memory git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1135432 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5269-f81766ad
DERBY-5269: Remove unused methods getSocketAndInputOutputStreams and checkAlternateServerHasEqualOrHigherProductLevel in NetConnection Removed unused methods getSocketAndInputOutputStreams and checkAlternateServerHasEqualOrHigherProductLevel. Patch file: derby-5269-1a-remove_methods.diff git-svn-id: https://svn.a...
[ { "file": "java/client/org/apache/derby/client/net/NetConnection.java", "hunks": [ { "added": [], "header": "@@ -1628,54 +1628,6 @@ public class NetConnection extends org.apache.derby.client.am.Connection {", "removed": [ " protected int getSocketAndInputOutputStre...
derby-DERBY-5271-d954835a
DERBY-5271: Client may hang if the server crashes due to a java.lang.Error Tries to ensure that if the network server crashes due to a condition raising java.lang.Error, the client socket will be closed on the server side. Note that even if one of the worker threads crashes, the network server itself may remain operat...
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ " } catch (Error error) {", " // Do as little as possible, but try to cut loose the client", " // to avoid that it hangs in a soc...
derby-DERBY-5274-e43e7e2d
DERBY-5274: getColumns() doesn't work with auto generated identity columns that start with large numbers Removed hard-coded maximum length for the start value and increment in the meta-data query. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1136371 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5278-631e46c9
DERBY-5278: AssertionFailedError in IndexSplitDeadlockTest.testBTreeForwardScan_fetchRows_resumeAfterWait_unique_split() Made synchronization between threads more reliable with wait/notify instead of sleep. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1136844 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5280-42114dab
DERBY-5280: Large batch of DDL in a database procedure dies on a transaction severity error Backed out the fix for DERBY-5161 since it's causing a regression and shouldn't be needed after DERBY-5157. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1138787 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5283-4eea8755
DERBY-5283: Crash / process termination during SYSCS_DISABLE_LOG_ARCHIVE_MODE can leave service.properties broken Adds recover logic for service.properties. To be able to recover there must be a backup file present. There are three different cases the logic can handle: o corrupt original (no EOF token) and backup: us...
[ { "file": "java/engine/org/apache/derby/impl/services/monitor/StorageFactoryService.java", "hunks": [ { "added": [ "import java.io.BufferedReader;", "import java.io.FileReader;", "import java.io.BufferedWriter;", "import java.io.OutputStreamWriter;" ...
derby-DERBY-5284-b1043a6a
DERBY-5284 A derby crash at exactly right time during a btree split can cause a corrupt db which can not be booted. Fixed a problem during BTREE split. The first phase of btree split sees if it can reclaim space from committed deleted rows. If it finds any it purges these rows in a nested internal transaction. It n...
[ { "file": "java/engine/org/apache/derby/impl/store/access/btree/BTreeController.java", "hunks": [ { "added": [ "\t * @return true if at least one row was purged. If true, then the routine", " * will leave the page latched, and the caller will release", ...
derby-DERBY-5288-df02986b
DERBY-5288: running multiple suites.All concurrently should be possible Wait for the threads that read stdout and stderr to finish before trying to fetch the output from SpawnedProcess. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1138795 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/SpawnedProcess.java", "hunks": [ { "added": [ " private final StreamSaver errSaver;", " private final StreamSaver outSaver;", " public SpawnedProcess(Process javaProcess, String name) {", " ...
derby-DERBY-5289-0f64b702
DERBY-5289 Unable to boot 10.5.1.1 database - fails during soft/hard upgrade process for a new version number while trying to drop jdbc metadata Checking testcase for DERBY-5289. In trunk theDERBY-3870 fix contributed by Knut Anders Hatlen fixed the issue so no code change is needed. Just the portion of DERBY-3870 tha...
[]
derby-DERBY-5289-ae72a308
DERBY-6003: Create row templates outside of the generated code Upgrade test fix in preparation for the actual fix for this issue. Improve SYSCS_INVALIDATE_STORED_STATEMENTS by making it null out the plans in SYS.SYSSTATEMENTS. Previously, it only marked them as invalid. Use the improved SYSCS_INVALIDATE_STORED_STATE...
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java", "hunks": [ { "added": [ " * @param recompile Whether to recompile or invalidate" ], "header": "@@ -4429,6 +4429,7 @@ public final class\tDataDictionaryImpl", "removed": [] ...
derby-DERBY-5292-7bfb37a8
DERBY-5292 SQLAuthorisation and views Patch derby5292d: For views, the premissions collection is disabled from tables in the query from-list since it should run with definer's rights. However, this disabling did not work for all cases. The way to reach all the "from" tables has been changed to use a node visitor inste...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java", "hunks": [ { "added": [ "import java.util.Iterator;" ], "header": "@@ -75,14 +75,12 @@ import org.apache.derby.iapi.store.access.TransactionController;", "removed": [ "impo...
derby-DERBY-5293-ccb1894d
DERBY-5293: Replace bubble sort in DataDictionaryImpl and CreateTriggerNode with Collections.sort() git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1141005 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java", "hunks": [ { "added": [ "import java.util.Collections;", "import java.util.Comparator;" ], "header": "@@ -155,6 +155,8 @@ import org.apache.derby.iapi.util.IdUtil;", "...
derby-DERBY-530-82d721fd
DERBY-530 ClientDriver ignores Properties object in connect(String url, Properties connectionProperties) method Send both the properties specified in the info parameter and those specified in the url to the server in the RDBNAM. user and password attributes will be the exception. user and password will be sent via th...
[ { "file": "java/client/org/apache/derby/jdbc/ClientDriver.java", "hunks": [ { "added": [ "import java.util.Enumeration;", "import java.util.Properties;", "" ], "header": "@@ -20,6 +20,9 @@", "removed": [] }, { "added": [...
derby-DERBY-5300-39837074
DERBY-5300: Change derby.tests.trace to print the class as well as fixture name Introduces the following changes to the output controlled by derby.tests.trace: a) Print '(emb)' or '(net)' to show which driver/framework is being used. b) Test class names are shortened if possible. The following prefixes are strip...
[ { "file": "java/testing/org/apache/derbyTesting/junit/Utilities.java", "hunks": [ { "added": [ "", " /**", " * Function to eliminate known package prefixes given a class full path", " * ", " * @param test", " * ...
derby-DERBY-5300-e7b124dd
DERBY-5300: Change derby.tests.trace to print the class as well as fixture name Changed code to agree with Javadoc param comment ("mainString" -> "test"). git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1185465 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/Utilities.java", "hunks": [ { "added": [ " public static String formatTestClassNames(String test) {", " if (test.startsWith(COMMON_FUNCTIONTEST_PREFIX)) {", " return test.substring(COMMON_F...
derby-DERBY-5308-f30426b5
DERBY-1903 Convert largedata/LobLimits.java to junit DERBY-5308 Investigate if largeData/LobLimits.java can be run for client Patch derby-1903_client_diff.txt enables client for largedata.LobLimitsLite. It disables the test cases that fail with client: DERBY-5338 client gives wrong SQLState and protocol error insertin...
[]
derby-DERBY-5310-29ba0c10
DERBY-5310: PropertySetter prints warning when building with JDK 7 Make PropertySetter recognize "Oracle Corporation" in java.vendor. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1142591 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/build/org/apache/derbyPreBuild/PropertySetter.java", "hunks": [ { "added": [ " private static final String JDK_ORACLE = \"Oracle Corporation\";" ], "header": "@@ -122,6 +122,7 @@ public class PropertySetter extends Task", "removed": [] ...
derby-DERBY-5312-08b4ed59
DERBY-5312 InterruptResilienceTest failed with ERROR 40XD1: Container was opened in read-only Patch derby-5312-simplify-reopen-1. It fixes the race condition by reducing the amount of work done under reopening the container, thus side stepping the issue by no longer updating the state variable that caused the race. ...
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java", "hunks": [ { "added": [ " private static final int REOPEN_CONTAINER_ACTION = 8;" ], "header": "@@ -74,16 +74,8 @@ class RAFContainer extends FileContainer implements PrivilegedException...
derby-DERBY-5313-e828232e
DERBY-5313: Assert failure with CASE expression in GROUP BY clause Remove assert that doesn't expect expressions in the GROUP BY list. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1575866 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5316-09ecd71c
DERBY-5343: Upgrade tests failing with java.lang.IllegalAccessException Rework the workaround for DERBY-23 added by DERBY-5316 so that it doesn't attempt to modify final fields. Modifying final fields doesn't seem to work prior to Java 5. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1148302 13f795...
[]
derby-DERBY-5316-e9666094
DERBY-5316: Unload old JDBC drivers when done with them in the upgrade tests Added a workaround for DERBY-23. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1145973 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5316-eb60359d
DERBY-5316: Unload old JDBC drivers when done with them in the upgrade tests Assert that the driver is only unloaded in the affected versions. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1145553 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5316-f89c1b58
DERBY-5316: Unload old JDBC drivers when done with them in the upgrade tests When we're done with an old version in the upgrade test, deregister all JDBC drivers in the old version's class loader from DriverManager. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1145111 13f79535-47bb-0310-9956-ffa45...
[]
derby-DERBY-5317-b862050f
DERBY-5317: Detect attempts to reuse a connection that in the middle of sending a request to the server. Use this to provide a better error message and avoid the NPE. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1530704 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Agent.java", "hunks": [ { "added": [ " ", " abstract public void beginWriteChainOutsideUOW() throws SqlException;" ], "header": "@@ -267,9 +267,8 @@ public abstract class Agent {", "removed": [ ...
derby-DERBY-5317-f30426b5
DERBY-1903 Convert largedata/LobLimits.java to junit DERBY-5308 Investigate if largeData/LobLimits.java can be run for client Patch derby-1903_client_diff.txt enables client for largedata.LobLimitsLite. It disables the test cases that fail with client: DERBY-5338 client gives wrong SQLState and protocol error insertin...
[]
derby-DERBY-5318-840ed3f5
DERBY-5318: Use assertDirectoryDeleted in ReplicationRun and remove dead code Use assertDirectoryDeleted to get better error reporting when the test fails to delete a database directory. Remove dead code in ReplicationRun and Utils. Patch file: derby-5318-1a-cleanup.diff git-svn-id: https://svn.apache.org/repos/a...
[]
derby-DERBY-532-00df88c3
DERBY-532: Support deferrable constraints Patch derby-532-testAlterConstraintInvalidation. Adds a fixture to test that prepared statement is invalidated when a table its depends on undergoes an ALTER TABLE ALTER CONSTRAINT statement. As it turns out, this is already handled by the common machinery for ALTER TABLE. g...
[]
derby-DERBY-532-0493010b
DERBY-532 Support deferrable constraints Substituted BaseJDBCTestCase#dropTable for home grown version, we prefer the standard way to do it. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1594255 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-532-400cc602
DERBY-532 Support deferrable constraints Patch derby-532-nullableUniqueFix. When we changed the implementation from special treatment of deferrable constraints in the BTree, a couple of extra predicates needed to be added were omitted - added those here: we should not mark the physical index with "uniqueWithDuplicateN...
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/InsertResultSet.java", "hunks": [ { "added": [ "", " if ( cd.getIndexDescriptor().isUniqueWithDuplicateNulls() &&", " !cd.getIndexDescriptor().hasDeferrableChecking() )" ], ...
derby-DERBY-532-51e62681
DERBY-532 Support deferrable constraints Patch derby-532-test-speedup changes ConstraintCharacteristicsTest to use a main memory database for some tests for increased speed. It also changes the way SystemPropertyTestSetup for static properties closes down the database to not deregister the driver; without this change ...
[ { "file": "java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java", "hunks": [ { "added": [ "import org.apache.derby.shared.common.sanity.SanityManager;" ], "header": "@@ -29,6 +29,7 @@ import java.util.Properties;", "removed": [] ...
derby-DERBY-532-831e54e7
DERBY-532 Support deferrable constraints Patch derby-532-allow-pk-unique-1, which opens up for using deferrable constraints for primary key and unique constraints, i.e. it is no longer required that the special property "derby.constraintsTesting" be used for those constraints, since the implementation is complete modu...
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/SetConstraintsConstantAction.java", "hunks": [ { "added": [], "header": "@@ -104,13 +104,6 @@ class SetConstraintsConstantAction extends DDLConstantAction", "removed": [ " // Remove when feature D...
derby-DERBY-532-908f0a96
DERBY-532 Support deferrable constraints A patch ("derby-532-fix-metadata-1") that fixes broken database metadata for deferred constraint indexes: the metadata query used the method IndexDescriptor#isUnique to determine logical uniqueness, but it really represents physical uniqueness now. For deferred unique constrain...
[]
derby-DERBY-532-c4cfffbb
DERBY-532 Support deferrable constraints Added an extra test case. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1577134 13f79535-47bb-0310-9956-ffa450edef68
[]