id
stringlengths
22
25
commit_message
stringlengths
137
6.96k
diffs
listlengths
0
63
derby-DERBY-6000-20b2fd9c
DERBY-6000: Add JDBC 4.2 java.sql.PreparedStatement.executeLargeUpdate() to embedded and client drivers. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1441088 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6000-47a8183b
DERBY-6000: Add JDBC 4.2 large max rows methods to Derby's embedded and client implementations of java.sql.Statement. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1440656 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Statement.java", "hunks": [ { "added": [ " /** For use in debugging setLargeMaxRows() method added by JDBC 4.2 */", " public static long fetchedRowBase = 0L;", " " ], "header": "@@ -28...
derby-DERBY-6000-7cfb7e6f
DERBY-6000: Add new PreparedStatement.setObject() overloads introduced by JDBC 4.2. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1443697 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl42.java", "hunks": [ { "added": [ "import org.apache.derby.client.ClientPooledConnection;", "import org.apache.derby.client.am.Agent;", "import org.apache.derby.client.am.LogicalPrepared...
derby-DERBY-6000-7fb99569
DERBY-6000: Add new JDBC 4.2 Statement.executeLargeUpdate() methods to the embeddeded JDBC 3.0 implementation. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1438600 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java", "hunks": [ { "added": [ "\tlong updateCount = -1;" ], "header": "@@ -75,7 +75,7 @@ public class EmbedStatement extends ConnectionChild", "removed": [ "\tint updateCount = -1;" ...
derby-DERBY-6000-90645152
DERBY-6000: Fix UnsupportedVetter failures when 10.9 jars run on Java 8. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1464103 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/JDBC.java", "hunks": [ { "added": [ " private static final boolean HAVE_SQLTYPE;", " static {", " boolean ok = false;", " try {", " Class.forName(\"java.sql.SQ...
derby-DERBY-6000-9206d5b2
DERBY-6000: Add new CallableStatement.registerOutParameter() overloads introduced by JDBC 4.2. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1444960 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl42.java", "hunks": [ { "added": [ "import org.apache.derby.client.am.CallableStatement;", "import org.apache.derby.client.am.CallableStatement42;", "import org.apache.derby.client.am.Log...
derby-DERBY-6000-b54918e7
DERBY-6000: Add support for JDBC 4.2 changes to BatchUpdateException. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1442195 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Agent.java", "hunks": [ { "added": [ "import org.apache.derby.jdbc.ClientDriver;" ], "header": "@@ -21,6 +21,7 @@", "removed": [] }, { "added": [ " public final void endBatchedR...
derby-DERBY-6000-c1ecc42c
DERBY-6000: Exclude deliberately unimplemented CallableStatement.registerOutParameter() overloads from the checks performed by the UnsupportedVetter test on Java 8. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1445235 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6000-ca48ab49
DERBY-6000: Fix javadoc build on Java 8. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1445393 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6000-cd1db933
DERBY-6000: Fix bug on contruction of BatchUpdateExceptions. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1443086 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl42.java", "hunks": [ { "added": [ "import org.apache.derby.client.am.SqlException;", "" ], "header": "@@ -21,6 +21,8 @@", "removed": [] } ] }, { "file": "...
derby-DERBY-6000-f26c60c7
DERBY-6000: Add the JDBC 4.2 large update methods to the client implementation of Statement. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1439883 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Agent.java", "hunks": [ { "added": [ " public final void endBatchedReadChain(long[] updateCounts, SqlException accumulatedExceptions) throws BatchUpdateException {" ], "header": "@@ -252,7 +252,7 @@ public abstract ...
derby-DERBY-6000-fc9b418d
DERBY-6000: Add support for new JDBC 4.2 methods in ResultSet. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1444210 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl42.java", "hunks": [ { "added": [ "import org.apache.derby.client.am.Cursor;" ], "header": "@@ -25,6 +25,7 @@ import org.apache.derby.client.am.SqlException;", "removed": [] } ...
derby-DERBY-6001-083db506
DERBY-6001: ErrorMessageTest assert failure: Only one of the waiters should be aborted Increase the wait timeout for the deadlock test. This prevents the intermittent timeout errors that could happen on slow machines if the deadlock detector hasn't picked and killed a victim before the other waiting thread has timed o...
[]
derby-DERBY-6001-8467ac54
DERBY-6001: ErrorMessageTest assert failure: Only one of the waiters should be aborted Improve diagnostics. Print stack traces to the log if both threads fail. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1412042 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6003-959fef25
DERBY-6003: Create row templates outside of the generated code Create and store an ExecRowBuilder in the GenericPreparedStatement instead of creating a generated method for allocating row templates. This patch makes ScanResultSet and its sub-classes use the new approach. git-svn-id: https://svn.apache.org/repos/asf/...
[ { "file": "java/engine/org/apache/derby/iapi/sql/compile/JoinStrategy.java", "hunks": [ { "added": [ " * @param resultRowTemplate The saved object index of a result row template" ], "header": "@@ -208,7 +208,7 @@ public interface JoinStrategy {", "removed"...
derby-DERBY-6003-a280bebe
DERBY-6003: Create row templates outside of the generated code Initial cleanup: Remove unused fields in ResultSet classes. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1412763 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/DependentResultSet.java", "hunks": [ { "added": [], "header": "@@ -91,10 +91,7 @@ class DependentResultSet extends ScanResultSet implements CursorResultSet", "removed": [ "\tprotected GeneratedMethod resultRowAl...
derby-DERBY-6003-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-6003-bbd82de4
DERBY-6003: Create row templates outside of the generated code Initial cleanup: Remove unused field from TypeId, and remove the corresponding parameter from the constructor. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1414718 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/types/TypeId.java", "hunks": [ { "added": [ " public static TypeId getUserDefinedTypeId(String className)", " throws StandardException", " {", " return new TypeId(StoredFormatIds.USERDEFINE...
derby-DERBY-6003-bda7291d
DERBY-6003: Create row templates outside of the generated code Make IndexRowToBaseRowResultSet use an ExecRowBuilder instead of a generated method to produce row templates. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1426151 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java", "hunks": [ { "added": [ " mb.push(acb.addItem(", " resultColumns.buildRowTemplate(referencedCols, false)));" ], "header": "@@ -3403,7 +3403,8 @@ public class From...
derby-DERBY-6003-d868eed0
DERBY-6003: Create row templates outside of the generated code Make SortResultSet, VTIResultSet, aggregates and WindowResultSet use an ExecRowBuilder instead of a generated method to allocate row templates. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1420579 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/sql/execute/ResultSetFactory.java", "hunks": [ { "added": [ "\t\t@param rowAllocator a reference to a saved object" ], "header": "@@ -382,7 +382,7 @@ public interface ResultSetFactory {", "removed": [ "\t\...
derby-DERBY-6006-576d3b75
DERBY-6006: NullPointerException in INSERT INTO ... SELECT FROM ... ORDER BY A NormalizeResultSet should not expose generated ORDER BY columns to its parent. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1417991 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6009-49300a73
DERBY-6009 Need stricter checking of ORDER BY clause in VALUES expressions This patch, derby-6009c, improves on the restriction that ORDER BY for VALUES be limited to column numbers (SQL-92 style) only. It should now give an understandable error message if anything else is tried. It adds a new error message, "4287B" a...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/OrderByList.java", "hunks": [ { "added": [ " /**", " * {@code true} if this instance orders a", " * {@literal <table value constructor>}.", " * See {@link #isTableValueCtorOrdering}....
derby-DERBY-6011-af2d9d28
DERBY-6011: Prefer unique index when accessing a small number of rows If there is a choice between accessing a table with a unique index scan that is guaranteed to return at most one row, and some other non-covering index scan that might return multiple rows, adjust the cost of the other scan so that it includes the c...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/FromBaseTable.java", "hunks": [ { "added": [ " * <p>", " * Estimate the cost of scanning this {@code FromBaseTable} using the", " * given predicate list with the given conglomerate.", "...
derby-DERBY-6012-cf2526ea
DERBY-6012: Print thread dump and dump javacore if NetworkServerTestSetup has to kill off the Network Server start up process due to timeout Incremental improvement for error reporting in the case of timeouts. Patch file: derby-6012-1a-error_reporting.diff git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/...
[ { "file": "java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java", "hunks": [ { "added": [ " String msg = getTimeoutErrorMsg(\"network server to start\");" ], "header": "@@ -211,7 +211,7 @@ final public class NetworkServerTestSetup ...
derby-DERBY-6017-39001146
DERBY-6017: IN lists with mixed types may return wrong results Make the test check numeric values rather than the string representation of the values. This should make the test less likely to fail if the string representation of floating point numbers is different on a platform. git-svn-id: https://svn.apache.org/rep...
[]
derby-DERBY-6017-4d09732d
DERBY-6017: IN lists with mixed types may return wrong results Cast the left operand to the dominant type if it isn't already of that type. This ensures the dominant type is always used in all the comparison operations when evaluating an IN predicate. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/InListOperatorNode.java", "hunks": [ { "added": [ "", " // DERBY-6017: All comparisons have to be performed using the dominant", " // type of *all* the values in the left operand and the right ...
derby-DERBY-6022-092cf8b2
DERBY-6022: Add a system procedure for (un)registering optional packages of tools. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1427859 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java", "hunks": [ { "added": [ " TypeDescriptor varchar32672Type = DataTypeDescriptor.getCatalogType( Types.VARCHAR, 32672 );" ], "header": "@@ -13392,6 +13392,7 @@ public final class\t...
derby-DERBY-6022-25959e32
DERBY-6022: Add ability to load/unload custom tool packages via syscs_util.syscs_register_tool(). git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1431526 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/catalog/Java5SystemProcedures.java", "hunks": [ { "added": [ " /** Generic name for all user-supplied tools: the first optional arg is the tool class name */", " private static final String CUSTOM_TOOL_CLASS_NAME = \"customT...
derby-DERBY-6022-e081c856
DERBY-6022: Add optional tool for bulk-importing data from foreign databases. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1431041 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6022-f96fbeb2
DERBY-6022: Add filename argument to the optional tool which turns off optimizer tracing, so that the trace can be dumped to a file. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1456579 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/db/OptimizerTrace.java", "hunks": [ { "added": [ "import java.sql.SQLException;", "" ], "header": "@@ -21,6 +21,8 @@", "removed": [] } ] }, { "file": "java/tools/org/apache/derby/impl/too...
derby-DERBY-6022-fbf52ee4
DERBY-6022: Fix NPE when resolving a function/aggregate name in a schema which hasn't been created yet. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1434363 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6025-0d23c0d8
DERBY-6025(Wrong results with IN lists and indexes in territory based collation) Basically, when all the elements in the inlist are not all constants, then we can not figure out at compile time the minimum and maximum values in the list. Mimimum and maximum values in the in list are required to be passed as start and ...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/InListOperatorNode.java", "hunks": [ { "added": [ "\t\t * We found in DERBY-6025(Wrong results with IN lists and indexes in ", "\t\t * territory based collation) that we need to make sure that we also", "\t\...
derby-DERBY-6030-35d6658f
DERBY-6030: Length of escape string in LIKE ... ESCAPE not properly checked with territory based collation git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1431259 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6033-99d9d5c2
DERBY-6033: Lift the arbitrary limit on the number of routine parameters Test that stored procedures can have as many parameters as the Java specification allows. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1428775 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6033-c87505f3
DERBY-6033: Remove the arbitrary limit on the number of parameters allowed for a Derby routine. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1428567 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6036-431cbeb5
DERBY-6036: Add a test case to verify that restrictions are pushed through views even though projections aren't. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1430957 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6038-ac5abd96
DERBY-6038: Intermittent failure in LangProcedureTest: cannot drop table because of open ResultSet Explicitly close the non-dynamic result set in the regression test case for DERBY-3304. Also update the comments to reflect that DERBY-3304 only affected the internal CallStatementResultSet and its dynamic result sets. ...
[]
derby-DERBY-6039-1381e706
DERBY-6039: Intermittent failure in LangProcedureTest.testDynamicResultSets: Table/View 'T1' does not exist. Let testDynamicResultSets() create its own test table, rather than relying on one created by another test case. Removes dependency on test case ordering. git-svn-id: https://svn.apache.org/repos/asf/db/derby/c...
[]
derby-DERBY-6040-a8dfc0a0
DERBY-6040: Fix sort order bug when selecting a partial column list from a table function. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1433031 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/FromVTI.java", "hunks": [ { "added": [ "import org.apache.derby.catalog.DefaultInfo;" ], "header": "@@ -34,6 +34,7 @@ import java.util.Enumeration;", "removed": [] }, { "added": [ ...
derby-DERBY-6041-f6fea403
DERBY-6041: Remove unused parameters from the BTreeLockingPolicy interface git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1433331 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/store/access/btree/BTreeController.java", "hunks": [ { "added": [ " leaf, slot, lock_fetch_desc, template," ], "header": "@@ -593,7 +593,7 @@ public class BTreeController extends OpenBTree implements Conglome...
derby-DERBY-6044-086e8176
DERBY-6044: Fix poor word breaking in table on download page(s) Some browsers break up DERBY-XXXX at the hyphen even though they shouldn't. Work around this by using a div-element to size the first column of the table. Patch file: derby-6044-1a-stop_breaking_up_jira_id.diff git-svn-id: https://svn.apache.org/repos/...
[ { "file": "java/build/org/apache/derbyBuild/GeneratorBase.java", "hunks": [ { "added": [ " private static final String COLUMN_HEADER = \"th\";" ], "header": "@@ -54,6 +54,7 @@ public class GeneratorBase extends Task {", "removed": [] }, { ...
derby-DERBY-6045-2c5ca3b1
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) These tests are similar to the ones added by revision 1465830 except that here we use parameters in the WHERE clause to pass the constants and check that we are still using index scan git-svn-id: https://svn.apache.org/repos/asf/db/...
[]
derby-DERBY-6045-394efd98
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) Adding a junit test but it will not run since the the fixture name is not starting with "test"... We should remove the x in front of test fixture's name once DERBY-6045 has been fixed git-svn-id: https://svn.apache.org/repos/asf/db/...
[]
derby-DERBY-6045-4c0bf643
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) Adding tow more test fixtures(testDerby6045WithUpdateStatistics and testDerby6045WithoutUpdateStatistics). Difference between the two fixtures is testDerby6045WithUpdateStatistics issues an update statistics after inserting the requir...
[]
derby-DERBY-6045-89166547
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) Splitting a junit fixture into two so that we have different tests for table with just primary key and table with primary and unique key. Additionally, got rid of the extra column in the table which is not part of any index to keep thi...
[]
derby-DERBY-6045-aa474ad0
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) Adding another junit test which has following 2 test cases(the test is named such that it won't get run for now until we understand the impact of the 2nd unique index on the selection of table scan vs index scan for 10K rows) // 1...
[]
derby-DERBY-6045-ce5c7630
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) Commiting a test showing that we use index scan for DELETE statement on a table with appropriate indexes. This happens with or without update statistics and with or without parameterized statement. git-svn-id: https://svn.apache.org...
[]
derby-DERBY-6045-d89ca1f7
DERBY-6045 (in list multi-probe by primary key not chosen on tables with >256 rows) Added a new test scenario where we add about 10K rows into a table with primary key and check if we are still using index scan for the queries being tested Additionally, cleaned up the test a little bit. git-svn-id: https://svn.apa...
[]
derby-DERBY-6047-615cb37c
DERBY-6047: Fix NPE in routine resolution introduced by work on DERBY-3069. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1435267 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/StaticMethodCallNode.java", "hunks": [ { "added": [ "\t\t\tRoutineAliasInfo rai = (RoutineAliasInfo) proc.getAliasInfo();", "\t\t\tint parameterCount = rai.getParameterCount();", " boolean hasVara...
derby-DERBY-6053-0b963b2b
DERBY-6053(Client should use a prepared statement rather than regular statement for Connection.setTransactionIsolation) Use prepared statements rather than regular statement to change the isolation level in client server mode. This will be better for performance and will also avoid possible garbage collection issues. ...
[ { "file": "java/client/org/apache/derby/client/am/Connection.java", "hunks": [ { "added": [ " //prepared statements associated with isolation level change are stored ", " // in isolationLevelPreparedStmts", " private Hashtable isolationLevelPreparedStmts ...
derby-DERBY-6053-c7f0048d
DERBY-6053 (Client should use a prepared statement rather than regular statement for Connection.setTransactionIsolation) Sinnce Connection object is already synchronized, no need to use synchronized Hashtable, instead us HashMap. Also parameterize HashMap object declaration for easier usage and tighter type checking ...
[ { "file": "java/client/org/apache/derby/client/am/Connection.java", "hunks": [ { "added": [ "import java.util.HashMap;" ], "header": "@@ -23,6 +23,7 @@ package org.apache.derby.client.am;", "removed": [] }, { "added": [ " final...
derby-DERBY-606-f824190b
DERBY-606 : SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE fails on (very) large tables Patch Contributed by Mayuresh Nirhali. Problem was when Allocated Extent associated with last allocated page is being compressed, All the pages are found to be free, thus new_highest_page is set to '-1'. Now, when the CompressSpaceOperat...
[ { "file": "java/engine/org/apache/derby/iapi/services/io/RegisteredFormatIds.java", "hunks": [ { "added": [ "\t\t/* 454 */ \"org.apache.derby.impl.store.raw.data.CompressSpacePageOperation10_2\"," ], "header": "@@ -515,7 +515,7 @@ String[] TwoByte = {", "rem...
derby-DERBY-6060-7b5f9648
DERBY-6060 Fix Javadoc for UpgradeTrajectoryTest dangling reference Patch derby-6060, class javadoc fixes. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1441313 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6063-8072e989
DERBY-6063: Access static variables by class name in TabInfoImpl, InsertResultSet and ControlRow Replaced occurrences of accessing static variables via instances with access via class names. Removed unused meothod in ControlRow. Removed a few unused local variables. Patch file: derby-6063-1a_statics-by-class_and_unus...
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/InsertResultSet.java", "hunks": [ { "added": [], "header": "@@ -920,7 +920,6 @@ class InsertResultSet extends DMLWriteResultSet implements TargetResultSet", "removed": [ "\t\tboolean\tfirstDeferredRow = true;" ...
derby-DERBY-6064-6be56bc9
DERBY-6064: Failures in upgradeTests.Changes10_9 related to index cardinality statistics Added logic to adjust asserts based on the version of the old database. The fix affecting the tests is in the released 10.8.3-version of Derby, and the fix has been backported to older branches back to 10.3. Patch file: derby-606...
[ { "file": "java/testing/org/apache/derbyTesting/junit/DerbyVersion.java", "hunks": [ { "added": [ " public static final DerbyVersion _10_9 = new DerbyVersion(10,9,0,0);" ], "header": "@@ -40,6 +40,7 @@ public class DerbyVersion", "removed": [] }, ...
derby-DERBY-6066-45a82041
DERBY-6066(Client should use a prepared statement rather than regular statement for Connection.getTransactionIsolation) This commit has the client user a PreparedStatement rather than a Statement to get the current isolation level. Additionally, we found while working on this issue, that the calls to get isolation le...
[ { "file": "java/client/org/apache/derby/client/am/Connection.java", "hunks": [ { "added": [ " private PreparedStatement getTransactionIsolationPrepStmt = null;" ], "header": "@@ -99,7 +99,7 @@ public abstract class Connection", "removed": [ " p...
derby-DERBY-6067-1e0c7038
DERBY-6067: JaCoCo fails with missing permissions when writing results Added a "jacoco.active" property, which will grant the required privileges to JaCoCo (or more specifically, all code bases) when set to the empty string (""). Enabled logic to disable the security manager when spawning processes and at the same tim...
[ { "file": "java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java", "hunks": [ { "added": [ "", " static final boolean jacocoEnabled = checkIfJacocoIsRunning();", " private static boolean checkIfJacocoIsRunning() {", " return (...
derby-DERBY-6073-2a51fce9
DERBY-6073: Adjust StatementPoolingTest to account for class names introduced by JDBC 4.2. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1446698 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6073-314a6da0
DERBY-6073: Fix StatementPoolingTest bug by making test order deterministic. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1446675 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6073-4a515d83
DERBY-6073: Test ordering instability in StatementPoolingTest ConnectionPoolDataSourceConnector should enable statement pooling also if the database doesn't already exist. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1447667 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/ConnectionPoolDataSourceConnector.java", "hunks": [ { "added": [ "", " enableStatementPooling(ds);", "", " // NOTE: Any other setup of the data source that gets added here,", "...
derby-DERBY-6075-09c26978
DERBY-6075: Use modern collections in impl/sql/compile Rename variables from aggregateVector to aggregates. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1459276 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/AggregateNode.java", "hunks": [ { "added": [ " * @param aggregates The aggregate list being built as we find AggregateNodes", " ValueNode bindExpression(", " FromList fromList, SubqueryL...
derby-DERBY-6075-1c6c2e83
DERBY-6075: Use modern collections in impl/sql/compile Replace remaining Vectors with ArrayLists. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455518 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/CompilerContextImpl.java", "hunks": [ { "added": [], "header": "@@ -76,7 +76,6 @@ import org.apache.derby.iapi.services.context.ContextImpl;", "removed": [ "import java.util.Vector;" ] }, { ...
derby-DERBY-6075-234a2b69
DERBY-6075: Use modern collections in impl/sql/compile Replace Hashtables used for duplicate checking with HashSets. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1453745 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/CreateIndexNode.java", "hunks": [ { "added": [ "import java.util.HashSet;" ], "header": "@@ -21,7 +21,7 @@", "removed": [ "import java.util.Hashtable;" ] }, { "added...
derby-DERBY-6075-3541af3c
DERBY-6075: Use modern collections in impl/sql/compile Replace Hashtable fields with HashSets. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1454296 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/DMLModStatementNode.java", "hunks": [ { "added": [ "import java.util.Set;" ], "header": "@@ -22,9 +22,9 @@", "removed": [ "import java.util.Hashtable;" ] } ] }, { "fil...
derby-DERBY-6075-38b59797
DERBY-6075: Use modern collections in impl/sql/compile Change signatures of CompilerContext.setParameterList(Vector) CompilerContext.getParameterList() ResultColumnList.bindExpressions(FromList, SubqueryList, Vector) to use List instead of Vector. Also change overrides of those methods, as well as signatures ...
[ { "file": "java/engine/org/apache/derby/iapi/sql/compile/CompilerContext.java", "hunks": [ { "added": [], "header": "@@ -27,10 +27,6 @@ import org.apache.derby.iapi.services.loader.ClassFactory;", "removed": [ "import org.apache.derby.iapi.sql.conn.LanguageConnectionC...
derby-DERBY-6075-402f3c2b
DERBY-6075: Use modern collections in impl/sql/compile Remove some unnecessary use of java.util.Properties. Mostly unused imports, but also some unused parameters. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455902 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/store/access/TransactionController.java", "hunks": [ { "added": [], "header": "@@ -23,8 +23,6 @@ package org.apache.derby.iapi.store.access;", "removed": [ "import java.io.Serializable;", "" ] }, ...
derby-DERBY-6075-43fdf450
DERBY-6075: Use modern collections in impl/sql/compile Use ArrayLists for the aggregate vectors. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455045 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/FromVTI.java", "hunks": [ { "added": [], "header": "@@ -30,11 +30,9 @@ import java.sql.ResultSet;", "removed": [ "import java.util.Enumeration;", "import java.util.Vector;" ] }, { ...
derby-DERBY-6075-47d4a4c1
DERBY-6075: Use modern collections in impl/sql/compile Replace use of Vector in method signatures and field declarations with List. The actual instances are still Vectors. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1453240 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java", "hunks": [ { "added": [ "import java.util.List;" ], "header": "@@ -22,7 +22,7 @@", "removed": [ "import java.util.Vector;" ] } ] }, { "file...
derby-DERBY-6075-5d9ef3f0
DERBY-6075: Use modern collections in impl/sql/compile Replace use of java.util.Vector with java.util.ArrayList in DMLModStatementNode. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1452350 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/DMLModStatementNode.java", "hunks": [ { "added": [ "import java.util.ArrayList;", "import java.util.List;" ], "header": "@@ -21,9 +21,10 @@", "removed": [ "import java.util.Vector;" ...
derby-DERBY-6075-b153b241
DERBY-6075: Use modern collections in impl/sql/compile Rename variables that have "vector" in their names and update comments. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1465368 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/DMLModStatementNode.java", "hunks": [ { "added": [ " ArrayList fkList = new ArrayList();" ], "header": "@@ -876,7 +876,7 @@ abstract class DMLModStatementNode extends DMLStatemen...
derby-DERBY-6075-c0a807c0
DERBY-6075: Use modern collections in impl/sql/compile Make CollectNodesVisitor return a List instead of a Vector. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1448064 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java", "hunks": [ { "added": [], "header": "@@ -167,7 +167,6 @@ import java.util.Hashtable;", "removed": [ "import java.util.Vector;" ] } ] }, { "file": "java/engine/...
derby-DERBY-6075-c7000cb7
DERBY-6075: Use modern collections in impl/sql/compile - Use ArrayList instead of Vector in ColumnOrdering and RowOrderingImpl - Use ReuseFactory to allocate Integer instances for table number and column number - Use library methods List.contains() and List.isEmpty() git-svn-id: https://svn.apache.org/repos/asf/d...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/ColumnOrdering.java", "hunks": [ { "added": [ "import java.util.ArrayList;", "import org.apache.derby.iapi.util.ReuseFactory;" ], "header": "@@ -21,12 +21,10 @@", "removed": [ "import...
derby-DERBY-6075-f33fbafe
DERBY-6075: Use modern collections in impl/sql/compile Change the signatures of - ValueNode.bindExpression(FromList, SubqueryList, Vector) - ValueNode.bindExpression(FromList, SubqueryList, Vector, boolean) - JavaValueNode.bindExpression(FromList, SubqueryList, Vector) - all overrides of the above methods to...
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/AggregateNode.java", "hunks": [ { "added": [], "header": "@@ -27,37 +27,24 @@ import org.apache.derby.iapi.services.sanity.SanityManager;", "removed": [ "import org.apache.derby.iapi.error.StandardException;", ...
derby-DERBY-6081-e25c098c
DERBY-6081: JDBC 4.2 setObject() and updateObject() methods throw NPE when type is null git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1448278 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6082-74fb1b0a
DERBY-6082: Removed re-prepares trigged by openOnServer_ Changed piggy-backing of prepare of preparedStatementForAutogeneratedKeys_ so that it doesn't need openOnServer_ Removed MaterialStatement.markClosedOnServer and implementation since it did not do anything. Since this reduced ClientStatement.markClosedOnServe...
[ { "file": "java/client/org/apache/derby/client/am/ClientPreparedStatement.java", "hunks": [ { "added": [ " setSection(section);" ], "header": "@@ -200,7 +200,7 @@ public class ClientPreparedStatement extends ClientStatement", "removed": [ " ...
derby-DERBY-6086-b6af70a4
DERBY-6086: Factor out logic for creating custom connection in jdbcapi.StatementPoolingTest Factored out logic for creating logical connections with statement caching into a separate inner helper class. Used when you need to get more than one logical connection from a single pooled connection. Patch file: derby-6086-...
[]
derby-DERBY-6089-4c2fc4ab
DERBY-6089: Make old overloads of CallableStatement.registerOutParameter raise a SQLFeatureNotSupportedException when illegal types are used. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455602 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/jdbc/EmbedCallableStatement42.java", "hunks": [ { "added": [ " registerOutParameter( parameterIndex, Util42.getTypeAsInt( sqlType ) );", " registerOutParameter( parameterIndex, Util42.getTypeAsInt( sqlType ), scale ...
derby-DERBY-609-8629a0fb
- DERBY-609 Returning ByteArrayInputStream from ResultSet is not appropriate - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp) git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@326534 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/ResultSet.java", "hunks": [ { "added": [ "import java.io.IOException;" ], "header": "@@ -20,7 +20,7 @@", "removed": [ "" ] }, { "added": [ "\tprivate CloseFilterI...
derby-DERBY-6092-0e593faf
DERBY-6154 add non-order by cases to the BlobClob4BlobTest While debugging DERBY-6092 it was noted that some other code paths could be exercised by adding non order by queries to one of the test cases. This change just reruns one of the test cases with order by queries and then again with non-order by queries. ...
[]
derby-DERBY-6092-643af3da
DERBY-6092: IOException when closing LOBFile at end of transaction A bug in Java 5 may cause IOException if two threads attempt to close the same RandomAccessFile at the same time. Avoid this situation by removing the LOBFile from the list of open files before closing it from LOBStreamControl's finalizer. Then the cl...
[ { "file": "java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java", "hunks": [ { "added": [ " // Remove the file from the list of open files *first*, then close it.", " //", " // Why? This code may be called from finalize(), and may end ...
derby-DERBY-6092-8f1a708d
DERBY-6154 add non-order by cases to the BlobClob4BlobTest While debugging DERBY-6092 it was noted that some other code paths could be exercised by adding non order by queries to one of the test cases. This change just reruns one of the test cases with order by queries and then again with non-order by queries. This c...
[]
derby-DERBY-6092-ca9270d8
DERBY-6154 add non-order by cases to the BlobClob4BlobTest While debugging DERBY-6092 it was noted that some other code paths could be exercised by adding non order by queries to one of the test cases. This change just reruns one of the test cases with order by queries and then again with non-order by queries. This c...
[]
derby-DERBY-6094-25206833
DERBY-6094: Create the database before running login timeout tests, in order to prevent slow database creation from killing the LoginTimeoutTest. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455156 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6094-25c1e7bc
DERBY-6094: Enforce login timeouts in the embedded driver and data sources. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1454600 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/net/NetConnection.java", "hunks": [ { "added": [ "", " handleLoginTimeout( e );", " " ], "header": "@@ -444,6 +444,9 @@ public class NetConnection extends org.apache.derby.client....
derby-DERBY-6094-d5beee79
DERBY-6094: Make login timeouts recover from interrupts and retry. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455230 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/jdbc/Driver20.java", "hunks": [ { "added": [ "import java.util.concurrent.LinkedBlockingQueue;", "import java.util.concurrent.SynchronousQueue;", "import org.apache.derby.iapi.util.InterruptStatus;" ], "heade...
derby-DERBY-6094-f63235de
DERBY-6094: Further cleanup of LoginTimeoutTest. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1455238 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6096-7f0f7751
DERBY-6096 OutOfMemoryError with Clob or Blob hash join: DataTypeDescriptor.estimatedMemoryUsage() has no case for BLOB or CLOB so would underestimate memory usage for those types at zero Estimate BLOB/CLOB size at 10000 like other long types. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@146424...
[ { "file": "java/engine/org/apache/derby/iapi/types/DataTypeDescriptor.java", "hunks": [ { "added": [ " //DERBY-6096 Need to estimate usage for BLOB and clob", " case StoredFormatIds.BLOB_TYPE_ID:" ], "header": "@@ -1491,6 +1491,8 @@ pub...
derby-DERBY-6096-90553c50
DERBY-6096: Only run gc if debug output has been requested git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1464470 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6097-b1a7fdac
DERBY-6097: Management test suite fails when JMX is not supported Skip the management tests if JMX is not supported. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1453179 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/JDBC.java", "hunks": [ { "added": [ " /**", " * Is javax.management.MBeanServer available? Indicates whether the", " * JVM supports the Java Management Extensions (JMX).", " */", ...
derby-DERBY-6100-9a818929
DERBY-6100: Upgrade tests fail on compact2 git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1453856 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-611-37f3f74a
DERBY-611 Network client: updateRow() causes a commit when autoCommit = true. Submitted by Dag.Wanvik@Sun.COM git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@357678 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/ResultSet.java", "hunks": [ { "added": [ " writeUpdateRow(false);" ], "header": "@@ -2817,11 +2817,7 @@ public abstract class ResultSet implements java.sql.ResultSet,", "removed": [ " bo...
derby-DERBY-6114-13673bdd
DERBY-6114: OOME in XAMemTest.testDerby4137_TransactionTimeoutSpecifiedNotExceeded Periodically run purge() on the cancellation timer to reclaim the space occupied by cancelled tasks. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1492094 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/services/timer/TimerFactory.java", "hunks": [ { "added": [ "import java.util.TimerTask;" ], "header": "@@ -21,7 +21,7 @@", "removed": [ "import java.util.Timer;" ] } ] }, { "file"...
derby-DERBY-6114-8032298d
DERBY-6114: Fold Java5SingletonTimerFactory into SingletonTimerFactory git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1499256 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/services/timer/SingletonTimerFactory.java", "hunks": [ { "added": [ "import java.util.concurrent.atomic.AtomicInteger;" ], "header": "@@ -30,6 +30,7 @@ import java.security.PrivilegedAction;", "removed": [] },...
derby-DERBY-6117-10df8a5b
DERBY-6117: Add a context-aware table function which could be used as an example in user docs; commit derby-6117-03-aa-ArchiveVTI.diff. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1563944 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/vti/ForeignTableVTI.java", "hunks": [ { "added": [ "public\tclass ForeignTableVTI extends ForwardingVTI implements RestrictedVTI" ], "header": "@@ -120,7 +120,7 @@ import org.apache.derby.iapi.util.IdUtil;", "removed"...
derby-DERBY-6117-29007f04
DERBY-6117: Give table functions more information about their execution environment; commit derby-6117-01-ab-AwareVTI.diff. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1561668 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/sql/execute/ResultSetFactory.java", "hunks": [ { "added": [ " @param vtiSchema Name of the schema holding the table function.", " @param vtiName Name of the table function." ], "header": "...
derby-DERBY-6117-70d436bd
DERBY-6117: Allow StringColumnVTIs to change their column names (once) based on their runtime environment; tests passed cleanly for me on derby-6117-02-aa-changeColumnNamesInStringColumnVTI.diff. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1563135 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/vti/StringColumnVTI.java", "hunks": [ { "added": [ "import org.apache.derby.shared.common.reference.SQLState;", "import org.apache.derby.iapi.error.StandardException;" ], "header": "@@ -34,6 +34,8 @@ import java.sql.Ti...
derby-DERBY-6117-a2ecbd3e
DERBY-6117 Silently swallowed SecurityExceptions may disable Derby features, including security features. Patch derby-6617-3b. It adds reporting of the swallowed SecurityException in FileMonitor#createDaemonGroup. To get that printed I also i had to to make sure to dump the temporary log in a change added to BaseMoni...
[ { "file": "java/engine/org/apache/derby/iapi/services/monitor/Monitor.java", "hunks": [ { "added": [ "import java.security.AccessControlException;" ], "header": "@@ -22,6 +22,7 @@", "removed": [] } ] }, { "file": "java/engine/org/apache/derby...
derby-DERBY-6122-8ce125fb
DERBY-6122 - InterruptResilienceTest fails with: junit.framework.ComparisonFailure: Database shutdown expected:<[08006]> but was:<[XBDA0]> The core problem that led to this assert was that an attempt by the test to shutdown the database timed out with: Caused by: java.sql.SQLException: Login timeout exceeded. The ...
[]
derby-DERBY-6126-572f3e8b
DERBY-6126: compatibility._Suite fails if derbyTesting.jar lives in different directory than product jars Based on fix contributed by Kristian Waagan. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1494883 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/DerbyDistribution.java", "hunks": [ { "added": [ " * directory have been forbidden. The main reason for this is that it is", " * from another. While it is possible to support such a configuration running", " * ...
derby-DERBY-6131-232f5efc
DERBY-6131 select from view with "upper" and "in" list throws a ClassCastException Prior to this fix the following query on a view would throw a ClassCastException select name from myView where upper(name) in ('AA', 'BB'); This query got in code that was trying to "push" predicates down, and that code is only cur...
[]