id
stringlengths
22
25
commit_message
stringlengths
137
6.96k
diffs
listlengths
0
63
derby-DERBY-5840-2a57bb08
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Store lists of implementation classes in a list instead of an array, since arrays cannot have generic types. This silences an unchecked conversion warning and allows us to remove a SuppressWarnings annotation. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1486826 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/services/monitor/BaseMonitor.java", "hunks": [ { "added": [ "import java.util.ArrayList;", "import java.util.List;" ], "header": "@@ -72,10 +72,12 @@ import java.io.BufferedReader;", "removed": [] },...
derby-DERBY-5840-3f7581c0
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features - Make ArrayUtil.asReadOnlyList() use checked conversions and remove SuppressWarnings annotation - Generify the signature of ArrayUtil.copy(Object[]), remove the now redundant copy(String[]) overload, and remove the now redundant casts in many of the call sites git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485676 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/services/io/ArrayUtil.java", "hunks": [ { "added": [ "\t// Methods to copy arrays.", " public static <T> T[] copy( T[] original )", " return (original == null) ?", " null :", ...
derby-DERBY-5840-4772c7ee
DERBY-5840: Compile network client with source and target level 1.5 git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1362419 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/ClientPooledConnection.java", "hunks": [ { "added": [ "import javax.sql.ConnectionEvent;", "import javax.sql.ConnectionEventListener;", "import org.apache.derby.client.net.NetXAConnection;", "import org.apac...
derby-DERBY-5840-503b49c4
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Fix compiler warning in CursorNode.init() by changing parameter from List<String> to String[] so that the cast from Object can be checked. Fix compiler warning in TriggerEventActivator by using a List instead of an array to store generic types. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485984 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/CursorNode.java", "hunks": [ { "added": [ "import java.util.Arrays;" ], "header": "@@ -22,6 +22,7 @@", "removed": [] }, { "added": [ " * @param updatableColumns The arra...
derby-DERBY-5840-654f47f6
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Simplifications enabled by the original cleanup of the compatibility tests. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1359069 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5840-850aba4e
DERBY-5840: Compile embedded JDBC 3.0 classes for Java 5 git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1364917 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/jdbc/BrokeredCallableStatement30.java", "hunks": [ { "added": [], "header": "@@ -22,13 +22,9 @@", "removed": [ "import java.math.BigDecimal;", "", "import java.util.Calendar;", "" ] ...
derby-DERBY-5840-89e145b7
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Fix unchecked warning in GroupedAggregateResultSet by changing the type of the distinctValues field from HashSet[][] to List<List<Set<String>>>. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1486028 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/GroupedAggregateResultSet.java", "hunks": [ { "added": [ "import java.util.Set;" ], "header": "@@ -25,6 +25,7 @@ import java.util.ArrayList;", "removed": [] }, { "added": [ ...
derby-DERBY-5840-8b47bc7a
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Refactor ClassSizeCatalog to prevent unchecked conversion warnings when ClassSize creates an instance via reflection and casts the result to Hashtable<String, int[]>. Introduce a new abstract ClassSizeCatalog class and rename the generated class to ClassSizeCatalogImpl, which extends ClassSizeCatalog. ClassSize can now access the catalog via the abstract class instead of casting it unchecked to Hashtable<String, int[]>. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485322 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/build/org/apache/derbyBuild/ClassSizeCrawler.java", "hunks": [ { "added": [], "header": "@@ -27,15 +27,8 @@ import java.io.File;", "removed": [ "import java.io.FileOutputStream;", "import java.io.ObjectOutput;", "import java.io.Obje...
derby-DERBY-5840-9548d383
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Make DataValueDescriptor.setBigDecimal() take a BigDecimal instead of a Number. The argument is always null or a BigDecimal instance, but its declared type had to be Number in order to compile on CDC, which is no longer supported. By making the declared type BigDecimal, we avoid an unchecked cast to Comparable in NumberDataType's implementation of the method. Also remove the classes that contain the CDC-specific implementation of the DECIMAL data type. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485076 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/types/DataType.java", "hunks": [ { "added": [ "import java.math.BigDecimal;" ], "header": "@@ -28,6 +28,7 @@ import org.apache.derby.iapi.services.sanity.SanityManager;", "removed": [] } ] }, { "fi...
derby-DERBY-5840-9d44c9e9
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Clean up warnings in various test packages: - derbynet - perf - system git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1482780 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/perf/clients/SequenceGeneratorConcurrency.java", "hunks": [ { "added": [], "header": "@@ -27,7 +27,6 @@ import java.sql.PreparedStatement;", "removed": [ "import java.util.Iterator;" ] }, { "a...
derby-DERBY-5840-a045b639
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Make the declared type of the lock groups HashMap<Lock, Lock> instead of HashMap<Lock, Object>. Stop suppressing unchecked conversion warnings in PropertyConglomerate, and make all conversions checked. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485609 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/services/locks/LockSpace.java", "hunks": [ { "added": [ " private final HashMap<Object, HashMap<Lock, Lock>> groups;" ], "header": "@@ -53,7 +53,7 @@ import org.apache.derby.iapi.services.locks.LockOwner;", "remo...
derby-DERBY-5840-a6d25cd5
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Generify CollectNodesVisitor so that the SuppressWarnings annotation on its visit() method can be removed. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485961 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/CollectNodesVisitor.java", "hunks": [ { "added": [ " private final Class<T> nodeClass;", " private final Class<? extends Visitable> skipOverClass;" ], "header": "@@ -38,8 +38,8 @@ import org.apac...
derby-DERBY-5840-a784994d
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Stop suppressing some unchecked conversion warnings. Make the conversions checked instead. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1484920 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java", "hunks": [ { "added": [], "header": "@@ -45,7 +45,6 @@ import org.apache.derby.iapi.error.SQLWarningFactory;", "removed": [ "import org.apache.derby.iapi.sql.execute.ExecutionContext;" ] ...
derby-DERBY-5840-c393694c
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Fix unchecked warnings in test packages: - engine - i18n - store - tools git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1482862 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5840-c784df50
DERBY-5840: Silence deprecation warnings in the network client git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1362420 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Clob.java", "hunks": [ { "added": [ " reInitForNonLocator(", " string_.substring(0, (int) pos - 1)", " .concat(str.substring(offset, offset + length)));" ], ...
derby-DERBY-5840-e18f54b3
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Clean up warnings in jdbcapi test suite, and some classes that the jdbcapi tests depend on in the upgrade test suite. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1483202 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5840-e474e510
DERBY-5840: Use for-each loops in the network server code git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1363264 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ "\t\tfor (int manager : knownManagers)", "\t\t\tint appLevel = appRequester.getManagerLevel(manager);", "\t\t\tint serverLevel = server.getManagerLevel(manager);" ...
derby-DERBY-5840-e76d29e4
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Remove SuppressWarnings annotation in DiskHashtable and use strongly typed variables instead of an overloaded Object variable to prevent the warnings. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1486780 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/store/access/DiskHashtable.java", "hunks": [ { "added": [ "import java.util.ArrayList;", "import java.util.List;" ], "header": "@@ -20,10 +20,11 @@", "removed": [ "import java.util.Vector;" ...
derby-DERBY-5840-f9a152bd
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Remove various @SuppressWarnings annotations and adjust the code so that the compiler doesn't complain. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1485321 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/services/context/ContextService.java", "hunks": [ { "added": [ "import java.util.Stack;" ], "header": "@@ -24,7 +24,7 @@ package org.apache.derby.iapi.services.context;", "removed": [ "import java.util.Ite...
derby-DERBY-5840-fcc35800
DERBY-5840: Clean up compiler warnings introduced by using Java 5 language features Remove the @SuppressWarnings("unchecked") annotation from BackingStoreHashtable and introduce a specialized sub-class of ArrayList to make the casts type safe. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1486782 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/store/access/BackingStoreHashtable.java", "hunks": [ { "added": [], "header": "@@ -394,7 +394,6 @@ public class BackingStoreHashtable", "removed": [ " @SuppressWarnings(\"unchecked\")" ] }, { ...
derby-DERBY-5840-ffa2d1b2
DERBY-5840: Silence compiler warnings in the compatibility tests. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1356735 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5847-0972a574
DERBY-5847: Clean up IDE warnings in DRDAConnThread Clean up performance warnings: - Use System.arraycopy() instead of manual copy - Use StringBuilder instead of StringBuffer where synchronization is not needed - Don't use string concatenation in arguments to StringBuffer.append() - In convertToHexString(), replace use of StringBuffer with StringUtil.toHexString() git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1359635 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.util.StringUtil;" ], "header": "@@ -64,6 +64,7 @@ import org.apache.derby.iapi.services.monitor.Monitor;", "removed": [] }, ...
derby-DERBY-5847-1562d537
DERBY-5847: Clean up IDE warnings in DRDAConnThread Replace use of obsolete collection class Vector with ArrayList. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1360133 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ "import java.util.List;" ], "header": "@@ -45,9 +45,9 @@ import java.sql.Types;", "removed": [ "import java.util.Vector;" ] }, { ...
derby-DERBY-5847-296695c0
DERBY-5847: Clean up IDE warnings in DRDAConnThread Fix warnings: - Remove if statement that was previously disabled by prepending "false &&" to the condition. Silences "unreachable code" warning. - Remove no-op bitwise shift operation. - Rename local variable that hides field. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1360135 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ "", " // The protocol wants us to send RDBUPDRM here, but we don't do", " // that because it used to cause protocol errors. DERBY-5847 has", ...
derby-DERBY-5847-68a67abc
DERBY-5847: Clean up IDE warnings in DRDAConnThread Removed unnecessary return statements. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1359110 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [], "header": "@@ -4278,8 +4278,6 @@ class DRDAConnThread extends Thread {", "removed": [ "\t\t ", "\t\treturn;\t\t\t// we are done" ] }, {...
derby-DERBY-5847-761351a0
DERBY-5847: Clean up IDE warnings in DRDAConnThread Remove assignment of values that are never used. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1359624 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [], "header": "@@ -735,7 +735,6 @@ class DRDAConnThread extends Thread {", "removed": [ "\t\tint updateCount = 0;" ] }, { "added": [ "\t\t...
derby-DERBY-5847-b4af06bb
DERBY-5847: Clean up IDE warnings in DRDAConnThread Silence warning about possible leak of reference to "this" from constructor. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1360137 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java", "hunks": [ { "added": [ "import java.util.concurrent.atomic.AtomicInteger;" ], "header": "@@ -58,6 +58,7 @@ import java.util.Hashtable;", "removed": [] }, { "ad...
derby-DERBY-5847-b690b7ae
DERBY-5847: Clean up IDE warnings in DRDAConnThread DERBY-436: Clean up imports and static field references in DRDA classes Changed in DRDAConnThread: - Use class name to reference static fields - Use direct references to constants in java.sql.ParameterMetaData instead of JDBC30Translation - Organize imports alphabetically git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1359559 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ "import java.io.IOException;", "import java.io.InputStreamReader;" ], "header": "@@ -22,11 +22,11 @@ package org.apache.derby.impl.drda;", "removed": [ ...
derby-DERBY-5847-dc489432
DERBY-5847: Clean up IDE warnings in DRDAConnThread NetBeans warns about synchronization on non-final objects. Since the synchronization is only used to ensure that set operations are visible in other threads, make the fields volatile instead of having a separate synchronization object per field. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1360134 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java", "hunks": [ { "added": [ " /** Time slice for this thread. */", " private volatile long timeSlice;", " /** Whether or not to log connections. */", " private volatile boolean...
derby-DERBY-5860-542c2b74
DERBY-5860: Remove unused methods in DDMReader and DDMWriter git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1362837 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/DDMReader.java", "hunks": [ { "added": [], "header": "@@ -222,11 +222,6 @@ class DDMReader", "removed": [ " // Get the current ccsidManager", " protected CcsidManager getCurrentCcsidManager() {", ...
derby-DERBY-5864-8c854a90
DERBY-5864: Cannot load derbynet._Suite on some J2ME platforms git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1363508 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/Derby.java", "hunks": [ { "added": [ " // DERBY-5864: The network server is not supported on J2ME.", " if (JDBC.vmSupportsJSR169()) {", " return false;", " }", ...
derby-DERBY-5866-531b4694
DERBY-5866: Triggers fire out of order In order to avoid ambiguities around switch from daylight saving time to standard time, and other time zone changes, store the trigger creation timestamps in Coordinated Universal Time (UTC) instead of the local time zone. Only use UTC if the database has been upgraded to 10.11 format, so that the change won't cause problems on downgrade. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1555703 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/catalog/SYSTRIGGERSRowFactory.java", "hunks": [ { "added": [ "import java.util.Calendar;", "import java.util.TimeZone;" ], "header": "@@ -50,6 +50,8 @@ import org.apache.derby.shared.common.sanity.SanityManage...
derby-DERBY-5866-6bd38476
DERBY-5866: Triggers fire out of order Make sure the creation timestamp of a newly created trigger is higher than the timestamps of the existing triggers on the same table. If it is not higher, the triggers may fire in the wrong order. If the current timestamp is not higher than the timestamp of the previous trigger defined on the table, the new trigger now gets a creation timestamp that is one millisecond higher than the creation timestamp of the previous trigger. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1555702 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/CreateTriggerConstantAction.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.services.property.PropertyUtil;" ], "header": "@@ -21,6 +21,7 @@", "removed": [] }, { "added":...
derby-DERBY-5866-8d0da4fe
DERBY-5866( testFiringConstraintOrder(org.apache.derbyTesting.functionTests.tests.lang.TriggerTest)junit.framework.AssertionFailedError: matching triggers need to be fired in order creation:1,NO CASCADE BEFORE,DELETE,ROW) As per Knut's recommendation, moving cleanup of TRIGGER_INFO back to tearDown(). Otherwise, the info from the last test case in TriggerTest won't be released until the JVM terminates. I don't expect it to take up a huge amount of memory, but with the big number of tests in suites.All unreleased data structures could accumulate and cause OOME. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1523821 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5866-b9b6cd81
DERBY-5866( testFiringConstraintOrder(org.apache.derbyTesting.functionTests.tests.lang.TriggerTest) junit.framework.AssertionFailedError:matching triggers need to be fired in order creation:1,NO CASCADE BEFORE,DELETE,ROW ) Move the cleanup code from tearDown() to setup() so that if a test fixture fails, we will have the left over wombat database with the schema and data used by the failing fixture for further debugging. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1523501 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5868-5ef7a0d9
DERBY-5868: Move java.sql.Wrapper implementations to base classes on the client Moved isWrapperFor() and unwrap() implementations to base classes to reduce duplication of code. Also moved some other methods that were duplicated in PreparedStatement40 and CallableStatement40 to their common base class PreparedStatement. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1364042 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/CallableStatement40.java", "hunks": [ { "added": [], "header": "@@ -34,8 +34,6 @@ import java.sql.SQLXML;", "removed": [ "import org.apache.derby.client.am.SqlException;", "import org.apache.derby.client.am.C...
derby-DERBY-5872-2ff02ef7
DERBY-5872: Inconsistency between isWrapperFor() and unwrap() in logical statements Make LogicalStatementEntity's isWrapperFor() only check the interfaces implemented by the logical statement. This makes it consistent with the unwrap() method, and also consistent with how isWrapperFor() works in LogicalConnection40 and LogicalDatabaseMetaData40. Add test cases for the new behaviour in PreparedStatementTest and CallableStatementTest. Enable ClosedObjectTest for logical statements. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1364524 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5873-40207815
DERBY-5873: Avoid unnecessary allocation of Number instances in client/server Use BigDecimal's valueOf() factory methods instead of explicit constructor calls where possible. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1372405 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/CrossConverters.java", "hunks": [ { "added": [ " // Convert to Double via String to avoid changing the precision,", " // which may happen if we cast float to double." ], "header": "@@ -3...
derby-DERBY-5873-66527ec1
DERBY-5873: Avoid unnecessary allocation of Number instances in client/server Replace explicit calls to constructors for java.lang.Number sub-classes and java.lang.Boolean with valueOf() calls or with auto-boxing. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1365468 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Blob.java", "hunks": [ { "added": [ " new ClientMessageId(SQLState.BLOB_BAD_POSITION), pos);", " pos);", " length);" ], "header":...
derby-DERBY-5874-6f660672
DERBY-5874: Remove JDBC 3 constants from client.am.Statement git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1365173 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Statement.java", "hunks": [ { "added": [], "header": "@@ -28,21 +28,6 @@ import org.apache.derby.shared.common.sanity.SanityManager;", "removed": [ " // JDBC 3 constant indicating that the current ResultSet object",...
derby-DERBY-5877-f44e479b
DERBY-5877: Prune the brokered class tree git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1365465 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/jdbc/BrokeredCallableStatement.java", "hunks": [ { "added": [ " * JDBC 3 brokered CallableStatement", "public class BrokeredCallableStatement extends BrokeredPreparedStatement", " super(control, sql, null);", ...
derby-DERBY-5878-0919fda2
DERBY-5878: Add ability to add comments for translators to the message descriptors in messages.xml. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1367230 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/build/org/apache/derbyBuild/MessageBuilder.java", "hunks": [ { "added": [ " String[] comments = getOptionalSubElements( message, \"comment\" );", " String[] args = getOptionalSubElements( message, \"arg\" );" ], "header"...
derby-DERBY-5878-7e9a11de
DERBY-5878: Add message argument names, as comments, to message file generated by MessageBuilder. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1365552 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/build/org/apache/derbyBuild/MessageBuilder.java", "hunks": [ { "added": [], "header": "@@ -572,7 +572,6 @@ public class MessageBuilder extends Task", "removed": [ "" ] }, { "added": [ "", " propert...
derby-DERBY-5879-5c29a4d2
DERBY-5879: Add comments for translators to some error messages, fix some string concatenation problems. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1367985 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java", "hunks": [ { "added": [ " String messageID;", " String[] args = null;", " ", " {", " if ( on ) { messageID = \"DRDA_Trace...
derby-DERBY-5880-46e89a99
DERBY-5880: Move java.sql.Wrapper implementations to base classes in embedded driver git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1372403 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/jdbc/BrokeredCallableStatement40.java", "hunks": [ { "added": [], "header": "@@ -175,33 +175,6 @@ public class BrokeredCallableStatement40 extends BrokeredCallableStatement", "removed": [ " /**", " * Sets t...
derby-DERBY-5885-870f7cd3
DERBY-5885: Re-order message args to correspond with argument numbers. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1367150 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/types/XML.java", "hunks": [ { "added": [ " SQLState.LANG_XML_QUERY_ERROR," ], "header": "@@ -830,7 +830,7 @@ public class XML", "removed": [ " SQLState.LANG_XML_QUERY_ERROR, x...
derby-DERBY-5889-761ebfb6
DERBY-5889: tests.compatibility._Suite has AccessControlException errors on Windows Relaxed the criteria casuing the test to be disabled on Windows such that it will only be disabled if at least one of the releases is located on an UNC path. Patch file: derby-5889-1b-disable_test_relaxed.diff git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1394250 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5894-6d4d95d4
DERBY-5894: NPE in OnlineBackupTest1 while backing up in stubFileToRemoveAfterCheckPoint Stop using the shared run() method from RAFContainer.backupContainer(), as it is not safe to use without synchronization (which is why the NullPointerException happened). Also, use doPrivileged() only to execute those parts of the code that need to run with privileges, as most of the code called from backupContainer() does not need privileges. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1422845 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.util.ReuseFactory;" ], "header": "@@ -28,6 +28,7 @@ import org.apache.derby.iapi.services.io.FormatIdUtil;", "removed": [] ...
derby-DERBY-5896-7f6e8aad
DERBY-5896: Change java/drda source code to use spaces instead of tabs and clean up tab creep in java/client Align with tab stops in java/client. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1372841 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/ClientXAConnection40.java", "hunks": [ { "added": [ " * @param listener the component which implements the" ], "header": "@@ -63,7 +63,7 @@ public class ClientXAConnection40 extends ClientXAConnection {", "re...
derby-DERBY-5897-82949123
DERBY-5897: Broken handling of paths with special characters in compatibility/VersionCombinationConfigurator Fixes URL to File conversion by going via URI and using the new File(URI) ctor. As an example, URLs containing '%20' for spaces will now result in valid files. Patch file: derby-5897-1a-url_handling.diff (with formatting modifications) git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1372345 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/DerbyDistribution.java", "hunks": [ { "added": [ " BaseTestCase.println(\"missing jar: \" + REQUIRED_JARS[i]);" ], "header": "@@ -201,6 +201,7 @@ public class DerbyDistribution", "removed": [...
derby-DERBY-5898-989d36ed
DERBY-5898; add ibm18 class to functionTests.harness adding an ibm18 class svn-copied from ibm17, then only replaced the 7s with 8s. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1371382 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/functionTests/harness/ibm18.java", "hunks": [ { "added": [ "/*", "", " Derby - Class org.apache.derbyTesting.functionTests.harness.ibm18", "", " Licensed to the Apache Software Foundation (ASF...
derby-DERBY-5908-69cf7498
DERBY-5908: Fix incorrect URLs for network shares. Patch contributed by Kristian Waagan git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1537862 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/drda/NetworkServerControl.java", "hunks": [ { "added": [ "import java.security.CodeSource;", "import java.security.ProtectionDomain;" ], "header": "@@ -26,7 +26,9 @@ import java.net.Inet6Address;", "removed": [] ...
derby-DERBY-5911-d35198db
DERBY-5911 WHERE condition getting pushed into sub-query with FETCH Patch "derby5911b", which changes logic in ProjectRestrictNode#pushExpressions to avoid pushing WHERE conditions into SELECTs that uses windowing and/or FETCH FIRST/OFFSET clauses. This fixes the bug in this issue. Adds new test cases in OrderByAndOffsetFetchInSubqueries. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1384035 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5912-ad188f44
DERBY-5912; testIsValidImplemented fails for NetworkServer in some slow running machines/configurations This commits the following changes: - changes the timeout in ConnectionMethodsTest from isValid(1) to isValid(200) and adds a comment - updates the comment in ConnectionTest so it refers to ConnectionMethodsTest - has commented out sleep code in DRDAConnThread that can be uncommented to test this - adds a fixture, testIsValidWithTimeout, that is disabled by having an 'x' in front of it, to ConnectionTest. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1381731 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5913-c8563f47
DERBY-5913: Remove unused classes [GS]et*Action in client.am Removed unused classes. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1379390 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/SetAccessibleAction.java", "hunks": [ { "added": [], "header": "@@ -1,49 +0,0 @@", "removed": [ "/*", "", " Derby - Class org.apache.derby.client.am.SetAccessibleAction", "", "...
derby-DERBY-5916-9f844273
DERBY-5916 (java.lang.NullPointerException org.apache.derby.impl.store.raw.data.BaseDataFileFactory.stop() connecting to network server) Check for the nullability of storageFactory before using it in shutdown code git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1394883 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/store/raw/data/BaseDataFileFactory.java", "hunks": [ { "added": [ "\t\t\tif (storageFactory != null)", "\t\t\t\tstorageFactory.shutdown();" ], "header": "@@ -526,7 +526,8 @@ public class BaseDataFileFactory", ...
derby-DERBY-5917-8f0d45d8
DERBY-5917: NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar Stop using client classes in XATransactionTest and CacheSessionDataTest when running with the embedded driver. Skip compatibility tests when client or server is not available. Skip test case for server command in derbyrunjartest if the server is not available. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1382791 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/XATestUtil.java", "hunks": [ { "added": [ "import java.util.Arrays;" ], "header": "@@ -26,6 +26,7 @@ import java.sql.Connection;", "removed": [] }, { "added": [ " public sta...
derby-DERBY-5917-fd0edf9d
DERBY-5917: NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar Avoid attempts to load client classes when the client driver is not there. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1382032 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/TestConfiguration.java", "hunks": [ { "added": [ " {", " return clientServerDecorator(bareClientServerSuite(testClass));" ], "header": "@@ -495,10 +495,8 @@ public final class TestConfiguration ...
derby-DERBY-592-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-5927-aea21f6f
DERBY-5927: Add utility methods to query state of URL attributes in EmbedConnection Added static utility methods for improved readability. Patch file: derby-5927-1b-isset_istrue.diff git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1386480 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java", "hunks": [ { "added": [ " boolean shutdown = isTrue(info, Attribute.SHUTDOWN_ATTR);" ], "header": "@@ -246,7 +246,7 @@ public class EmbedConnection implements EngineConnection", ...
derby-DERBY-5933-d7f41dde
DERBY-5933 SQL sorting error Patch "d5933-remap+test", which fixes a problem in column reference remapping in connection with flattening of a left outer join with a base table. See the Javadoc for the new test case JoinTest#testDerby_5933 for details. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1390205 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5935-6790718a
DERBY-5935: Remove unused code for factory classes in the reflection service git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1390342 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/services/reflect/DatabaseClasses.java", "hunks": [ { "added": [ "import java.io.ObjectStreamClass;", "import java.util.Properties;", "import org.apache.derby.iapi.error.StandardException;", "import org.apache....
derby-DERBY-5937-f978b1f8
DERBY-5937: File handle is leaked when a Slave replication is shutdown with failover=true Use DataSource in the test to prevent internal deadlock in DriverManager when running the test on Java 5. This also allows the test to run on JSR-169 platforms. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1395482 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5940-7379752e
DERBY-5940: Disable securityMechanism=8 in NSSecurityMechanismTest on ARM platforms Disabled strong password substitution tests on ARM platforms. The check is simply based on the value of "os.arch", which must be "ARM" for the tests to be disabled. Patch file: derby-5940-1a-disable_secMec8_on_ARM.diff git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1392819 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5944-ac112f79
DERBY-5944: The hard-coded PlanExporter help message should be internationalized This patch was contributed by Yun Fang ( fangyuncn at gmail dot com ) This change replaces the literal string text in PlanExporter.java with references to Derby messages. The change also contributes both the English message text and the corresponding Chinese message text. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1727230 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/tools/org/apache/derby/tools/PlanExporter.java", "hunks": [ { "added": [ "", "import org.apache.derby.iapi.tools.i18n.LocalizedResource;" ], "header": "@@ -29,6 +29,8 @@ import java.io.Writer;", "removed": [] }, { ...
derby-DERBY-5947-03937751
DERBY-5947: Factor out common code from generated classes Remove three generated fields and six corresponding accessor methods with a single field (an instance of a class with three fields) and one getter method. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1399139 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/services/compiler/ClassBuilder.java", "hunks": [ { "added": [ " * <p>", " * If the modifiers include static, the returned method builder is for", " * a class or interface initialization method. Otherwise, th...
derby-DERBY-5947-d11ed089
DERBY-5947: Factor out common code from generated classes Moved more code to BaseActivation.execute(). Specifically, code to initialize BaseActivation's resultSet field and marking the root of the result set tree as the top-level result set. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1400023 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/ActivationClassBuilder.java", "hunks": [ { "added": [], "header": "@@ -94,7 +94,6 @@ class ActivationClassBuilder\textends\tExpressionClassBuilder", "removed": [ "\t\texecuteMethod = beginExecuteMethod();" ...
derby-DERBY-5947-dd9ad070
DERBY-5947: Factor out common code from generated classes Move authorization check for CursorNodes from generated code to CursorActivation. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1400024 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/execute/CursorActivation.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.error.StandardException;", "import org.apache.derby.iapi.sql.ResultSet;", "import org.apache.derby.iapi.sql.conn.Authorizer;", ...
derby-DERBY-5947-edb7fcc6
DERBY-5947: Factor out common code from generated classes - Move common code from the generated execute() method to a method in BaseActivation, and rename the generated execute() method to doExecute(), called from BaseActivation.execute(). - Simplify generated code in doExecute(). Specifically, fetch the resultSet field only once. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1399140 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/ActivationClassBuilder.java", "hunks": [ { "added": [ "import java.lang.reflect.Modifier;", "import org.apache.derby.iapi.reference.ClassName;", "import org.apache.derby.iapi.services.compiler.LocalField;", ...
derby-DERBY-5947-f5426327
DERBY-5947: Factor out common code from generated classes Move execution count from generated class to GenericPreparedStatement. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1413586 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/services/compiler/MethodBuilder.java", "hunks": [ { "added": [], "header": "@@ -161,17 +161,6 @@ public interface MethodBuilder {", "removed": [ " /**", " * Push the contents of the static field onto the st...
derby-DERBY-5948-88fc5dd0
DERBY-5948 Update JVMInfo to include JDK8 git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1406053 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/services/info/JVMInfo.java", "hunks": [ { "added": [ " <LI> 9 - J2SE_18 - JDK 1.8" ], "header": "@@ -49,6 +49,7 @@ public abstract class JVMInfo", "removed": [] }, { "added": [ "...
derby-DERBY-5951-63baf276
Various small changes in CollationTest: - Reorganized how the test suite was built in order to prevent unnecessary database creation when there are multiple test cases that should run with the same collation. - Enabled test case for DERBY-5951 and fixed typos in some of its SQL statements. - Removed some unused code. - Use more of the framework's helper methods. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1430735 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5951-85e788ba
DERBY-5951: Supply missing CLOB instantiator. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1398914 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/iapi/types/CollatorSQLClob.java", "hunks": [ { "added": [ "import java.sql.Clob;", "" ], "header": "@@ -21,6 +21,8 @@", "removed": [] }, { "added": [ " /**", " * C...
derby-DERBY-5954-0af1f882
DERBY-5954 NPE in SELECT involving subselects and windows functions Patch "derby-5954-with-test-2" makes the code only look for in-lined window specification in simply contained select lists. Adds a new test case to OLAPTest which would fail with an NPE before this patch, cf. original JIRA problem. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1406240 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5955-38667d90
DERBY-5955 Prepare Derby to run with Compact Profiles (JEP 161) Patch derby-5955-rename. Rename the new datasources from using prefix "NonJNDI" to prefix "Basic". git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1440262 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/jdbc/BasicClientConnectionPoolDataSource40.java", "hunks": [ { "added": [ " Derby - Class org.apache.derby.jdbc.BasicClientConnectionPoolDataSource40" ], "header": "@@ -1,6 +1,6 @@", "removed": [ " Derby - ...
derby-DERBY-5955-58bf06e1
DERBY-5955 Prepare Derby to run with Compact Profiles (JEP 161) Patch derby-5955-embed-restructure-04. This restructures the class hierarchy for embedded data sources to prepare for introduction of the non-JNDI dependent ones for JEP 161. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1427045 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/drda/org/apache/derby/impl/drda/XADatabase.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.error.ExceptionSeverity;", "import org.apache.derby.iapi.reference.MessageId;", "import org.apache.derby.iapi.services.i18n.MessageService;", ...
derby-DERBY-5955-cb88209e
DERBY-5955 Prepare Derby to run with Compact Profiles (JEP 161) Patch derby-5955-javadoc-followup; typo fix plus clarify usage: JDBC 4.2/Java 8/Java 8 Compact profile 2. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1441327 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/jdbc/EmbeddedXADataSource40.java", "hunks": [ { "added": [ " running on the following platforms:", " <p>", " <ul>", " <li>JDBC 4.1 - Java SE 7", " <li>JDBC 4.2 - full Java SE 8", ...
derby-DERBY-5960-e82e672f
DERBY-5960: VirtualRandomAccessFile.close() is not idempotent git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1402111 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/io/vfmem/VirtualRandomAccessFile.java", "hunks": [ { "added": [], "header": "@@ -25,7 +25,6 @@ import java.io.DataInputStream;", "removed": [ "" ] }, { "added": [ " private final Blo...
derby-DERBY-5964-6051d0cd
DERBY-5964: Timestamp comparison failure in AutomaticIndexStatisticsTest.testStatisticsCorrectness Run test in GMT timezone to prevent instabilities around transition to or from DST. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1404886 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5969-e744e840
DERBY-5969: Raise a SQLWarning if someone attempts to change the encryption state of an already booted database. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1404947 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-597-39aa8c4a
DERBY-398 - Bring store tests into J2ME/CDC Foundation testing Contributed by Deepa Remesh Attaching a patch 'store_patch.diff' for enabling tests (mostly store tests) to run in J2ME. This patch does the following: * i18n\urlLocale.sql, i18n\urlLocale_app.properties, urlLocale.out - Removed protocol name from URLs and added 'ij.protocol' to app_properties file so that test can run in J2ME. Updated master file. * i18n\DefaultLocale.java - Removed lines to get nested connection from procedure methods since these connections were not used. This was causing failures with JSR169 where nested connections are not supported. * i18n\iepnegativetests_ES_app.properties, iepnegativetests_ES.out - Added 'ij.protocol' to app_properties file so that test can run in J2ME. Updated master file. * storetests\st_1_app.properties, storetests\st_schema_app.properties, storetests\st_b5772_app.properties, storetests\derby94_app.properties - Changed the property 'database' to 'ij.database' in st_schema_app.properties. * tools\ij2_app.properties - Changed the property 'database' to 'ij.database' and added ij.dataSource properties. * tools\ij4_app.properties - Added comment that this test has to be excluded since it is a test for a case with no default driver. * tools\iepnegativetests_app.properties, tools\iepnegativetests.sql, iepnegativetests.out - Removed protocol name from URLs and added 'ij.protocol' to app_properties file so that test can run in J2ME. Updated master file. * tools\ij_app.properties - Added comment that test is specific to ij and tests bad/good urls * testRoutines.sql - To avoid using nested connection, directly called create procedures instead of calling a wrapper which will create the procedures. * store\databaseProperties_app.properties, databaseProperties.out - Changed the master file to match change in testRoutines.sql * TestUtil.java - Changed getDataSource method to handle case for EmbeddedSimpleDataSource. Added getDataSourceConnection method which takes a Properties object and returns a connection using the appropriate data source class. This method can be used to boot/shutdown Derby using DataSource. * lang\errorStream_app.properties - This test works with changes to TestUtil.getDataSource method to handle case for EmbeddedSimpleDataSource. * lang\logStream.java, lang\logStream_app.properties, logStream.out - Changed to call TestUtil.getDataSourceConnection instead of DriverManager.getConnection * lang\functions_app.properties - Added comment that test is excluded for now since it uses server-side JDBC. This test can be converted to Java test to call only functions which do not use server-side JDBC in JSR169 environment. * lang\releaseCompileLocks_app.properties - Added comment that test uses server-side JDBC * store\backupRestore.sql, store\backupRestore_app.properties, backupRestore.out - Removed protocol name from URLs. Updated master file. * store\removeStubs.sql, store\removeStubs_app.properties, removeStubs.out - Removed protocol name from URLs. Updated master file. * store\rollForwardBackup_app.properties, store\rollForwardBackup.sql, rollForwardBackup.out - Removed protocol name from URLs. Updated master file. * store\connectDisconnect_app.properties - This test works after changes for DERBY-597. So just re-enabled it. * store\Beetle6038_app.properties - Added comment that this tests encryption which is not supported in Derby J2ME implementation * store\TestDurabilityProperty.java, store\TestDurabilityProperty_app.properties - Changed to call TestUtil.getDataSourceConnection instead of DriverManager.getConnection * store\backupRestore1.java, store\backupRestore1_app.properties - Changed to call TestUtil.getDataSourceConnection instead of DriverManager.getConnection * store\MaxLogNumber_app.properties, store\MaxLogNumberRecovery_app.properties - Changed the property 'database' to 'ij.database' and added ij.dataSource properties. * store\rollForwardRecovery.sql, store\rollForwardRecovery_app.properties, rollForwardRecovery.out - Removed protocol name from URLs. Updated master file. * store\logDevice_app.properties - This test works after changes for DERBY-597. So just re-enabled it. * lang\closed.java, lang\closed_app.properties - Added catch for NoSuchMethodError for DatabaseMetadata.getURL method. Skips 'shutDownTest' if it is JSR169. I think I can change this to use TestUtil.getDataSourceConnection for shutdown test. I noticed this when writing this down and so will submit this in my next patch. * j9_foundation\closed.out - Added new master to handle DatabaseMetadata.getURL * j9_foundation\ij2.out - Added new master because of difference in output of show connections in J2ME. Ran derbyall with this patch using Sun JDK 1.4.2 and j9_foundation in IBM WCTME 5.7. No new failures. Created: 28/Jun/05 07:23 PM Updated: Yesterday 11:56 PM git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@348593 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/functionTests/util/TestUtil.java", "hunks": [ { "added": [ "", "import javax.sql.DataSource;", "", "", "", "\t", "\t//Used for JSR169", "\tpublic static boolean HAVE_...
derby-DERBY-597-9952cc5b
DERBY-597 - Enhance ij connect statement to work in J2ME/CDC/FP ummary of patch: * If ij.dataSource property is set and the url in the 'connect' statement does not start with 'jdbc:', ij calls util.getDataSourceConnection to get connection (instead of using DriverManager). * Added getDataSourceConnection(String dsName,String user,String password,String dbName,boolean firstTime) to util.java. This returns a connection using the data source passed in ij.dataSource property. This method is called by startJBMS in util.java and ConnectStatement() in ij. The parameter firstTime indicates whether this method is called at start of test by startJBMS or by ConnectStatement. * getDataSourceConnection method in turn calls setupDataSource which calls the set methods of data source. If firstTime=true, it uses values of ij.dataSource.* properties to set up the data source object. Otherwise, the properties ij.dataSource.databaseName and ij.dataSource.createDatabase are ignored. Instead, value of 'dbName' parameter is used. [In first version of this patch, parameter 'firstTime' was called 'create'] * Removed J2ME excludes from 13 tests which pass with this patch. Some tests needed changes in the connect statement url and master files. Contributed by Deepa Remesh git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@328246 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/tools/org/apache/derby/impl/tools/ij/util.java", "hunks": [ { "added": [ " /**", " * Sets up a data source with values specified in ij.dataSource.* properties or", " * passed as parameters of this method", " * ", ...
derby-DERBY-5970-345f23d4
DERBY-5970: Prevent user from setting the decryptDatabase attribute to anything other than true. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1403735 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java", "hunks": [ { "added": [ " private boolean isCryptoBoot(Properties p)", " throws SQLException", " {", " vetTrue(p, Attribute.DECRYPT_DATABASE) ||" ...
derby-DERBY-5971-59481500
DERBY-5971: Improve test coverage for SQLBoolean class Cover the hashCode() method by testing SELECT DISTINCT, which performs a hash scan. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1406125 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5971-82bf2d50
DERBY-5971: Improve test coverage for SQLBoolean class Remove two unused methods and add test cases for binary operators. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1404190 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5972-eca1f7c6
DERBY-5972: Grammar doesn't accept OR operator without parentheses Update grammar to allow full value expressions where it previously only allowed conjunctions of boolean primaries. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1408136 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5975-cfd0e57c
DERBY-5975; intermittent nightly test failure across releases in Derby5937SlaveShutdownTest.testSlaveFailoverLeak disabling test for weme git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1412392 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5979-93fd82e1
DERBY-5979: Part a: Do not use \n to terminate lines in Apache License header String constant and instead join the line strings with the value of line.separator property. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1499287 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/build/org/apache/derbyPreBuild/ReleaseProperties.java", "hunks": [ { "added": [ " private static final String LS = System.getProperty(\"line.separator\");", " \"# Licensed to the Apache Software Foundation (ASF) under one or more\" + LS +", ...
derby-DERBY-5986-e27c25c2
DERBY-5986: Make ArithmeticTest test DECIMAL data type git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1406950 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5988-1bd559bd
DERBY-5988 Instability in DataSourceTest: some test fixture orderings makes test_jdbc4_1 fail Patch derby-5988: temporary measure to avoid tests failing intermittently. Could be removed when the issue is fixed, but IMHO running fixtures in in a predicatable order is good anyway. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1427660 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-5989-80fb7449
DERBY-5989: Stop producing byte code for non-existent qualifiers git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1409120 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/sql/compile/PredicateList.java", "hunks": [ { "added": [ " String retvalType = ClassName.Qualifier + \"[][]\";", "", " // If there are no qualifiers, return null.", " if (numberOfQualifie...
derby-DERBY-5992-c724a49e
DERBY-5992: Use BaseTestCase.execJavaCmd() to start process from NetworkServerTestSetup git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1409113 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java", "hunks": [ { "added": [ "import java.util.Arrays;" ], "header": "@@ -33,6 +33,7 @@ import java.security.PrivilegedActionException;", "removed": [] }, { "add...
derby-DERBY-5995-b79d9d80
DERBY-5995 (Add a test case to check the 3 readme files get created even when log directory has been changed with jdbc url attribute logDevice ) Adding a junit test for readme files but the log directory has been redirected using logDevice jdbc url attribute. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1413740 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/testing/org/apache/derbyTesting/junit/DropDatabaseSetup.java", "hunks": [ { "added": [ " //DERBY-5995 (Add a test case to check the 3 readme files get created ", " // even when log directory has been changed with jdbc url attribute ", ...
derby-DERBY-5996-9496f49a
DERBY-5996(Create readme files (cautioning users against modifying database files) at database hard upgrade time) During hard upgrade to 10.10, Derby will create 3 readme files, one in database directory, one in "seg0" directory and one in log directory. These readme files warn users against touching any of files associated with derby database git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1418568 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/store/access/RAMAccessManager.java", "hunks": [ { "added": [ "import org.apache.derby.iapi.services.monitor.PersistentService;" ], "header": "@@ -32,6 +32,7 @@ import org.apache.derby.iapi.services.daemon.Serviceable;", ...
derby-DERBY-5998-026c5e8f
DERBY-5998: Replication tests fail on CDC platforms without optional JSSE package Skip the replication tests if the optional package is not available. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1411160 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6000-01c7f835
DERBY-6000: Fix misc issues raised by JDBC 4.2 buddy testing. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1450422 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/jdbc/ClientDriver.java", "hunks": [ { "added": [ " ", " checkURLNotNull( url );", "" ], "header": "@@ -93,6 +93,9 @@ public class ClientDriver implements java.sql.Driver {", "removed": [...
derby-DERBY-6000-0b0a105a
DERBY-6000: Add JDBC 4.2 method Statement.executeLargeBatch() to embedded and client drivers. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1440035 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/client/org/apache/derby/client/am/Statement.java", "hunks": [ { "added": [ " agent_.logWriter_.traceEntry(this, \"executeLargeUpdate\", sql);", " agent_.logWriter_.traceExit(this, \"executeLargeUpdate\", updateValue);" ...
derby-DERBY-6000-0be21896
DERBY-6000: Add JDBC 4.2 DatabaseMetaData changes to embedded and client drivers. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1441436 13f79535-47bb-0310-9956-ffa450edef68
[ { "file": "java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java", "hunks": [ { "added": [ " /**", " * Added in JDBC 4.2.", " *", " * Derby does not support the Types.REF_CURSOR type.", " *", " * @re...
derby-DERBY-6000-1149dc1d
DERBY-6000: Add negative tests for the new JDBC 4.2 overloads of ResultSet.updateObject. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1450776 13f79535-47bb-0310-9956-ffa450edef68
[]
derby-DERBY-6000-17efc162
DERBY-6000: Add new CallableStatement.setObject() overloads introduced by JDBC 4.2. git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1445327 13f79535-47bb-0310-9956-ffa450edef68
[]