id stringlengths 22 25 | commit_message stringlengths 137 6.96k | diffs listlengths 0 63 |
|---|---|---|
derby-DERBY-2242-740f64e4 | DERBY-2242 DERBY-2217 (partial) Allow the DatabaseMetaDataTest to run from within the
upgradeTests._Suite setup and add it to be run complete when the new engine is being
used (soft upgrade and hard upgrade).
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@497519 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-7e854495 | DERBY-2242 (partial) adding tests for getColumnPrivileges and getTablePrivileges
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@595876 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-834e80ec | DERBY-2242 (partial) More testing for DatabaseMetaData.getTypeInfo
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@498710 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-835b4700 | DERBY-2242 (partial) Add more fixtures to DataabaseMetaDataTest and change
some JDBC.assert methods that check the full ResultSet to
return the number of rows seen in the ResultSet.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@496773 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/JDBC.java",
"hunks": [
{
"added": [
" ",
" /**",
" * Assert a result set is empty.",
" * If the result set is not empty it will",
" * be drained before the check to see if"... |
derby-DERBY-2242-83d7d005 | DERBY-2242 (partial) Add ODBC type information checking for getTypeInfo() in DatabaseMetaDataTest.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@505023 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-948b7e19 | DERBY-2242 (partial); add some comments
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@596177 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-c0d0ae80 | DERBY-2242 (partial) Remove harness test dbMetaDataJdbc30.java as the new JUnit
DatabaseMetaDataTest covers the tests cases.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@498013 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-c663c379 | DERBY-2242 (partial) Add testing of getTables() to DatabaseMetaDataTest.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@500439 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-dfa772af | DERBY-2242 (partial); implementing the TODO re testUnimplementedSQLObjectAttributes.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@590476 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-e3dbf436 | DERBY-2242 Add pattern testing to DatabaseMetaDataTest for the getColumnsModify() fixture,
hopefully in a way that will allow easy additon of other pattern matching tests for
other metadata methods.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@520193 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-fa4893d8 | DERBY-2242 (partial) Additional testing of getTypeInfo() for DatabaseMetaDataTest.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@497919 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2242-ff292616 | DERBY-2242 (partial) Add more fixtures to DatabaseMetaDataTest and add list of
methods not yet tested.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@496580 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2243-2f7d4961 | DERBY-2243 Modifying the return type for methods like
- supportsANSI92EntryLevelSQL()
- supportsExpressionsInOrderBy()
in EmbedDatabaseMetaData.java to return TRUE as Derby does support these features
Thus now the behavior is consistent across drivers.
Contributed by Saurabh Vyas Saurabh.Vyas@Sun.COM
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@498732 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2243-561f091a | DERBY-2243 Modifying the return type for methods like
- supportsANSI92EntryLevelSQL()
- supportsExpressionsInOrderBy()
in EmbedDatabaseMetaData.java to return TRUE as Derby does support these features
Thus now the behavior is consistent across drivers.
(forgot this file as part of revision 498732)
Contributed by Saurabh Vyas
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@498872 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java",
"hunks": [
{
"added": [
"\t\t/* DERBY - 2244 : Derby does support Order By Expression (Derby-134)",
"\t\t* thus changing the return value to true to relfect that the support",
"\t\t* is... |
derby-DERBY-2248-b8d1d8ab | DERBY-2248: Add Network Server system test.
Committed for Manjula Kutty <manjula.kutty@gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@514882 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/system/nstest/utils/MemCheck.java",
"hunks": [
{
"added": [
"/*",
" ",
" Derby - Class org.apache.derbyTesting.system.nstest.utils.MemCheck",
" ",
" Licensed to the Apache Software Foundation (ASF... |
derby-DERBY-2249-ee0904b7 | DERBY-2249 (partial): Initial commit of files for a new test "toolkit" with
the following potential uses:
- run a lot of optimizations to look for memory leaks, etc. in the optimizer
- run queries that take a long time to optimize, to try to understand why
- run queries that are quite complex, to determine whether we select the
"best" query plan
- run queries that take a long time to execute
- run queries on different versions to see the performance gain/loss
Contributed by Manjula Kutty (mkutty@remulak.net)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@513562 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/system/optimizer/utils/TestViews.java",
"hunks": [
{
"added": [
"/*",
" ",
" Derby - Class org.apache.derbyTesting.system.langtest.utils.TestViews",
" ",
" Licensed to the Apache Software Foundati... |
derby-DERBY-2254-5891683c | DERBY-2254: Increase overhead requirements which trigger log file switches when the checkpointing thread can't keep up with log writers.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1102417 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/log/LogCounter.java",
"hunks": [
{
"added": [
"\t\t\t\t\t\t\t \"log file position exceeded max log file size. log file position = \" + position );",
"\t\t\t\t\t\t\t \"log file number exceeded max log file number. log fi... |
derby-DERBY-2255-c0c37165 | DERBY-2255 - ij will now show a different prompt while in a multi-line interactive statement. Patch contributed by Anders Morken.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@592500 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/tools/org/apache/derby/impl/tools/ij/StatementFinder.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.tools.i18n.LocalizedOutput;",
"import org.apache.derby.iapi.tools.i18n.LocalizedInput;",
""
],
"header": "@@ -21,6 +21... |
derby-DERBY-2256-0b0252d8 | DERBY-2256: Make sure that IN-list comparisons are done with the "dominant" type
when two values have different type precedences. More specifically:
- When determining the "judge" type in InListOperatorNode.preprocess(),
iterate through all of the values to find out what the dominant type is,
and then use that as the "judge" for sorting. Prior to these changes we
just used the type of the left operand as judge, but that was not correct.
- At execution time (i.e. in DataType.in()), add logic to ensure that all search
comparisons are done using the dominant type of the values being compared.
- Add appropriate test cases to lang/inbetween.sql.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@523411 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/DataType.java",
"hunks": [
{
"added": [
"\t\t *",
"\t\t * NOTE: We may have sorted the IN-lst values at compile time using",
"\t\t * a specific (dominant) type, but we did *not* actually cast the",
"\t\t... |
derby-DERBY-2258-28a04c75 | DERBY-2258 Modified the assert case for XML data type in DatabaseMetaDataTest.java for precision check.
Patch contributed by: Saurabh Vyas Saurabh.Vyas@Sun.COM
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@504241 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2258-aa02c639 | DERBY-2258 DERBY-2259 DERBY-2260 DERBY-2245
1) metadata.properties : Removed entries for LONG NVARCHAR, NATIONAL CHAR, NATIONAL CHAR VARYING data type & added XML data type in getTypeInfo()
2) DatabaseMetaDataTest.java : Removed check for unsupported types (all supported types are specified in supportedTypes array ) from testGetTypeInfo() method & added support for SQLXML type in the test. This requires extending the test to verify the field values for XML data type (like PRECISION, SEARCHABLE etc)
3) connectionJdbc20.out : It requires removing unsupported data types & adding XML data type in the expected output for the test.
4) Minor changes to getSQLKeywords.
Patch contributed by: Saurabh Vyas Saurabh.Vyas@Sun.COM
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@504234 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2259-aa02c639 | DERBY-2258 DERBY-2259 DERBY-2260 DERBY-2245
1) metadata.properties : Removed entries for LONG NVARCHAR, NATIONAL CHAR, NATIONAL CHAR VARYING data type & added XML data type in getTypeInfo()
2) DatabaseMetaDataTest.java : Removed check for unsupported types (all supported types are specified in supportedTypes array ) from testGetTypeInfo() method & added support for SQLXML type in the test. This requires extending the test to verify the field values for XML data type (like PRECISION, SEARCHABLE etc)
3) connectionJdbc20.out : It requires removing unsupported data types & adding XML data type in the expected output for the test.
4) Minor changes to getSQLKeywords.
Patch contributed by: Saurabh Vyas Saurabh.Vyas@Sun.COM
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@504234 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2260-aa02c639 | DERBY-2258 DERBY-2259 DERBY-2260 DERBY-2245
1) metadata.properties : Removed entries for LONG NVARCHAR, NATIONAL CHAR, NATIONAL CHAR VARYING data type & added XML data type in getTypeInfo()
2) DatabaseMetaDataTest.java : Removed check for unsupported types (all supported types are specified in supportedTypes array ) from testGetTypeInfo() method & added support for SQLXML type in the test. This requires extending the test to verify the field values for XML data type (like PRECISION, SEARCHABLE etc)
3) connectionJdbc20.out : It requires removing unsupported data types & adding XML data type in the expected output for the test.
4) Minor changes to getSQLKeywords.
Patch contributed by: Saurabh Vyas Saurabh.Vyas@Sun.COM
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@504234 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2264-19ea3276 | DERBY-2264 (followup): Disable jdbcapi/DboPowersTest for JSR169 since
Derby does not support database encryption for that platform (per
the specification for JSR169 attached to DERBY-97).
Contributed by: Dag Wanvik (dag.wanvik@sun.com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@521401 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2264-674c2a4c | DERBY-2264: Commit Dag's DERBY-2264-1.diff patch, which restricts database shutdown to the DBA.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@510173 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java",
"hunks": [
{
"added": [
"\t\t\t\tif (!usingNoneAuth) {",
"\t\t\t\t\t// DERBY-2264: Only allow db owner to shut down if",
"\t\t\t\t\t// authentication is on.",
"\t\t\t\t\tcheckIsDBOw... |
derby-DERBY-2264-af7f5e2b | DERBY-2264: Commit Dag's patch DERBY-2264.5.diff, which restricts encryption powers to the DBA.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@518214 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java",
"hunks": [
{
"added": [
"\tTransactionResourceImpl tr; // always access tr thru getTR()"
],
"header": "@@ -119,7 +119,7 @@ public abstract class EmbedConnection implements EngineConnection",
... |
derby-DERBY-2264-c4e95b5d | DERBY-2264 Patch DERBY-2264-7.diff, which restricts database hard upgrade to the database owner.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@528274 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java",
"hunks": [
{
"added": [
"\t\t\t// (re)encryption or hard upgrade boot to (possibly) authenticate",
"\t\t\t// first. We can not authenticate before we have booted, so in",
"\t\t\t// order to e... |
derby-DERBY-2264-ca5edbb8 | DERBY-2264 Committed DERBY-2264-9.* which restricts database owner
powers enforcement to only such cases as when both
derby.database.requireAuthentication and
derby.database.sqlAuthentication are enabled, based on feed-back from
community over upgrading compatibility concerns.
Also fixes an issue with interference between feature checking and hard upgrade.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545370 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java",
"hunks": [
{
"added": [
"\t\t\t\tif (!bootDatabase(info, isTwoPhaseUpgradeBoot))"
],
"header": "@@ -252,7 +252,7 @@ public abstract class EmbedConnection implements EngineConnection",
"re... |
derby-DERBY-2264-df597d11 | DERBY-2264: Committed Dag's DERBY-2264-2.diff patch, which addresses some minor comments on the previous patch.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@510586 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2265-dc66b566 | DERBY-2265 bad code in functionTests.harness.jvm.guessWSHome
- prevented StringIndexOutOfBoundsException with j9
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@499200 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/functionTests/harness/jvm.java",
"hunks": [
{
"added": [
"\t\tint havejre=jhome.indexOf(sep + \"jre\");",
"\t\tif (havejre > 0)",
"\t\t{",
"\t\t\twshome = jhome.substring(0,jhome.indexOf(sep + \"jre\"));",
... |
derby-DERBY-2269-1a1fb6ae | DERBY-2269 - running tests with SecurityManager with JSR169 support with derbyrun.jar in CLASSPATH causes NoClassDefFounError: javax.naming.Referenceable
- added if (!JDBC.supportsJSR169()) blocks to prevent calls to Class.forName("org.apache.derby.derby.jdbc.ClientDataSource").
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@501337 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/SecurityManagerSetup.java",
"hunks": [
{
"added": [
"\t\t// if we attempt to check on availability of the ClientDataSource with ",
"\t\t// JSR169, attempts will be made to load classes not supported in",
"\t\t/... |
derby-DERBY-2277-a72b9de0 | DERBY-2277 - enable jdk17 runs with old test harness
Patch contributed by Vermund Ostgaard
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@501994 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/functionTests/harness/jdk17.java",
"hunks": [
{
"added": [
"/*",
" ",
" Derby - Class org.apache.derbyTesting.functionTests.harness.jdk17",
" ",
" Licensed to the Apache Software Foundation (A... |
derby-DERBY-2278-0d6b4099 | DERBY-2278 Adds a new class OEChecks that does the cardinality checks in order to separate out the OE code
logic into its own class and separating it out from the junit test framework that we have.
This leads to modification in implementation of the fixtures in the Checks.java to appropriately call
the methods from the OEChecks.
Adds a new class - DriverUtility that can be used to populate the OE database given the drivername and
the database connection url and then perform checks on it.
Assumption is that the schema is already loaded into the database.
Contributed by Sunitha Kambhampati -- ksunithaghm@gmail.com
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@506748 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/system/oe/run/Checks.java",
"hunks": [
{
"added": [
"import org.apache.derbyTesting.system.oe.util.OEChecks;"
],
"header": "@@ -29,6 +29,7 @@ import junit.framework.TestSuite;",
"removed": []
},
{
... |
derby-DERBY-2282-a6631d9b | DERBY-2282: Incorrect "transitive closure" logic leads to inconsistent behavior for binary comparison predicates
Extended the fix to work on parameters in addition to constants.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@890370 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/PredicateList.java",
"hunks": [
{
"added": [
" /**",
" * Check if a node is representing a constant or a parameter.",
" *",
" * @param node the node to check",
" * @ret... |
derby-DERBY-2295-26b12fac | DERBY-2295 Change DropDatabaseSetup to be explicit about which database it is removing and
ensure that database is shutdown first. Does not assume the current database
is the one to be shutdown.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@509419 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/DropDatabaseSetup.java",
"hunks": [
{
"added": [
"import java.util.List;",
"",
"import javax.sql.DataSource;",
" * Shutdown and drop the database identified by the logical",
" * name passed ... |
derby-DERBY-2296-14ed86a4 | DERBY-2296 - reinstating setShutdownDB in JDBCDataSource after implementing it for ClientDataSource; simplifying *AuthenticationTest by removing if(usingEmbedded()) and usingDerbyNetClient()) blocks for shutdown is now possible.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@530863 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/JDBCDataSource.java",
"hunks": [
{
"added": [
" setBeanProperty(ds, \"shutdownDatabase\", \"shutdown\");",
" clearStringBeanProperty(ds, \"shutdownDatabase\");"
],
"header": "@@ -221,20 ... |
derby-DERBY-2296-d641aff3 | DERBY-2296 - ensure values for createDatabase and shutdownDatabase get reset when the value is invalid. Add test case to DSCreateShutdownDBTest.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@529838 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/jdbc/ClientBaseDataSource.java",
"hunks": [
{
"added": [
" else // reset",
" this.createDatabase = false;"
],
"header": "@@ -877,6 +877,8 @@ public abstract class ClientBaseDataSource implements Seria... |
derby-DERBY-23-09ecd71c | DERBY-5343: Upgrade tests failing with java.lang.IllegalAccessException
Rework the workaround for DERBY-23 added by DERBY-5316 so that it
doesn't attempt to modify final fields. Modifying final fields
doesn't seem to work prior to Java 5.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1148302 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-23-e9666094 | DERBY-5316: Unload old JDBC drivers when done with them in the upgrade tests
Added a workaround for DERBY-23.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1145973 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-23-fb57a7b2 | DERBY-23 Patch (DERBY-23-npe.diff) that addresses the NullPointerException messages from rawStoreDaemon threads we. Submitted by Knut Anders Hatlen
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@371506 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/services/context/ContextService.java",
"hunks": [
{
"added": [
"\t\tThreadLocal tcl = threadContextList;",
"\t\tif (tcl == null) {",
"\t\t\t// The context service is already stopped.",
"\t\t\treturn null;",
... |
derby-DERBY-231-5087be8d | DERBY-231 FOR UPDATE required for updatable result set to work. Submitted by Andreas Korneliussen <Andreas.Korneliussen@Sun.COM>
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@332491 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/conn/LanguageConnectionContext.java",
"hunks": [
{
"added": [
"\tStatementContext pushStatementContext(boolean isAtomic, boolean isForReadOnly, String stmtText,"
],
"header": "@@ -593,7 +593,7 @@ public interface Langua... |
derby-DERBY-2316-9bf3e1a4 | DERBY-2316 (partial) Convert compatibility/testScript.xml to JUnit
Allow CompatibilityCombinations to run other test suites than the
default (...).junitTests.compatibility.CompatibilitySuite.
Contributed by Ole Solberg.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@552051 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2318-1d7133ec | DERBY-2318 - preventing a difference between jvms in how a new Throwable stack trace is presented to cause a false test failure.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@518814 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2318-a609b819 | DERBY-2318 Cleaned up the code that gets the stack trace, but didn't change anything that would change the behaviour.
I don't see any failure on WEME 6.1 though.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@507093 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2330-e604a710 | DERBY-2330 Disallow user-defined routines from calling methods internal to Derby.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545178 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/StaticMethodCallNode.java",
"hunks": [
{
"added": [
"\t\t\tString schemaName = procedureName.getSchemaName();",
"\t\t\t\t\t\t\t\t",
"\t\t\tboolean noSchema = schemaName == null;",
"\t\t\tSchemaDesc... |
derby-DERBY-2331-31d9b6fb | DERBY-2331 (testing) Add some more testing of java class loading order from installed jars.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547345 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2331-c722b365 | DERBY-2331 (cleanup) Cleanup some code in the loading mechanism for installed jar files,
mainly adding comments. Add some testing of the order of loading classes.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547305 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/services/reflect/JarLoader.java",
"hunks": [
{
"added": [
"final class JarLoader extends SecureClassLoader {"
],
"header": "@@ -51,7 +51,7 @@ import org.apache.derby.iapi.services.i18n.MessageService;",
"removed": [... |
derby-DERBY-2339-777cc86c | DERBY-2339 Fixed mistake in ClientThread
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@507920 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/ClientThread.java",
"hunks": [
{
"added": [
" // IOException. Print stack trace and...",
" // ... we need to do a controlled shutdown of the",
" // server, sin... |
derby-DERBY-2341-2fa8526d | DERBY-2341 Ensure modules booting after the store by the database receive the correct properties
object that also includes the set of database properties.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@508163 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/db/BasicDatabase.java",
"hunks": [
{
"added": [],
"header": "@@ -144,8 +144,6 @@ public class BasicDatabase implements ModuleControl, ModuleSupportable, Property",
"removed": [
"\tprotected Properties allParams;\t// propert... |
derby-DERBY-2342-db2c1c24 | DERBY-2342: convert importExport.java to junit
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@514040 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2343-f2fe81a9 | DERBY-2343: Update sysinfo_api to current JUnit usage. Includes a note about the
classpath issue discovered while updating the test.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@508328 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2345-27be4fc0 | DERBY-2345: Fixed bug where Blob.truncate(long) did not work if the blob was materialized in memory. A test was also added.
Patch contributed by Anurag Shekhar.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@509375 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2348-68be5f68 | DERBY-2348: Put testProtocol.java back in the old harness for now.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@521949 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2348-ea8eec08 | DERBY-2348: Move testProtocol.java back to running in the old harness
due to differences in output on IBM JVMs
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@521558 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2349-1d0c809d | derby-4477 Selecting / projecting a column whose value is represented by a stream more than once fails
Patch derby-4477-partial-2. This patch clones streamable columns in
occurence 2..n in ProjectRestrictResultset if they occur more than
once in the select list. It also adds the three repro test cases from
DERBY-3645, DERBY-3646 and DERBY-2349 to BLOBTest. The patch is not
complete and needs to be revisted when cloning of store streams is
implemented. Currenly the cloning occurs via materialization and this
will exhaust memory when lobs are large. See FIXME in
ProjectRestrictResultSet.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@902857 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/execute/ResultSetFactory.java",
"hunks": [
{
"added": [
" @param cloneMapItem Item # for columns that need cloning",
" @param reuseResult Whether or not to reuse the result row."
],
"header": "@... |
derby-DERBY-235-47e6fb7f | committing this patch for DERBY-235 for suresh.thalamati@gmail.com
Problem was service name on database creation was getting just set to the canonical name of the database directory
without subsub protocol name added in the beginning. Whereas rest of the system seems to expect that the
subsub protocol name also is part of the service name. For example if "csf" is subprotocol name ,
service name should be "csf:C:\suresht\databases\wombat1" not just "C:\suresht\databases\wombat1".
Attached diff fixes the problem by prefixing the subsub protocol name to the canonical name, to generate
the service name in the case of create also.
This was not an issue with default "directory" subsub protocol because the system consistently generates
the service name as just the canonical name of the service root.
Another doubt I had while fixing this issue why we generate the service name after creating the service root,
my guess is because of the following comment in the java docs for java.io.File.getCanonicalPath() method:
" Every pathname that denotes an existing file or directory has a unique canonical form. Every pathname that
denotes a nonexistent file or directory also has a unique canonical form. The canonical form of the pathname of a
nonexistent file or directory may be different from the canonical form of the same pathname after the file or
directory is created. Similarly, the canonical form of the pathname of an existing file or directory may be different from the
canonical form of the same pathname after the file or directory is deleted.
"
git-svn-id: https://svn.apache.org/repos/asf/incubator/derby/code/trunk@165645 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/services/monitor/PersistentServiceImpl.java",
"hunks": [
{
"added": [
"\t\t\tString protocolLeadIn = \"\";",
"\t\t\t//prepend the subsub protocol name to the storage factoty canonical",
"\t\t\t//name to form the service... |
derby-DERBY-2350-1198ab7d | DERBY-2350
Fix XML in triggers by changing code generation to generate different code
in the case of XML of the form when referencing old and new column values.:
XMLPARSE(DOCUMENT
CAST (org.apache.derby.iapi.db.Factory::
getTriggerExecutionContext().getNewRow().
getString(<colPosition>) AS CLOB)
PRESERVE WHITESPACE)
Also change XML.setValueFromResult() to validate the character stream and
set the xType as appropriate after parsing the stream.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@561189 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/XML.java",
"hunks": [
{
"added": [
" private SqlXmlUtil tmpUtil;",
""
],
"header": "@@ -139,6 +139,8 @@ public class XML",
"removed": []
}
]
},
{
"file": "java/engine/org/apache/... |
derby-DERBY-2350-a7f52a6e | DERBY-1102 Add missing classes for TriggerTest and latest version of test with reference to DERBY-2350.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@508639 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/functionTests/util/streams/StringReaderWithLength.java",
"hunks": [
{
"added": [
"package org.apache.derbyTesting.functionTests.util.streams;",
"",
"import java.io.StringReader;",
"",
"public clas... |
derby-DERBY-2351-497ffc7e | DERBY-2351: ORDER BY with expression with distinct in SELECT list.
This is a follow-on patch for DERBY-2351, which addresses a number of
problems involving column aliasing that occurred with the initial
DERBY-2351 patch. After the initial DERBY-2351 patch, queries such as
the following one failed:
select distinct c1 as a1 from t order by c1
This patch modifies the ORDER BY column matching algorithm to
match column references using multiple rules, depending on
whether or not the ORDER BY reference is qualified or not:
- unqualified references are matched first against the alias name,
then against the underlying column name from the source table
- qualified references are matched only against the underlying
specified table
A number of additional test cases are added as part of this patch to verify
that the above query, and other similar queries, now work as intended.
This patch rejects at least one query known to have worked before:
select t1.id as idc1, t1.id as idc2 from t1 order by t1.idc1, t1.idc2;
After discussion with Derby developers, this query was felt to
be invalid, as there is no such column "idc1" in table "t1". The query
should *not* qualify the ORDER BY column references with table "t1":
select t1.id as idc1, t1.id as idc2 from t1 order by idc1, idc2;
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@636608 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ResultColumnList.java",
"hunks": [
{
"added": [
" boolean columnNameMatches;"
],
"header": "@@ -441,6 +441,7 @@ public class ResultColumnList extends QueryTreeNodeVector",
"removed... |
derby-DERBY-2354-c6ca3043 | DERBY-2354: Unable to perform select query using DISTINCT on a read-only database
Made databases that are stored in a jar or a zip use a writable
directory for temporary files needed by some operations (typically
hash scans when the hash table gets too big to be kept in memory).
The writable directory can be controlled by the database property
derby.storage.tempDirectory.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1092067 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/access/btree/index/B2IFactory.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.store.access.TransactionController;"
],
"header": "@@ -36,6 +36,7 @@ import org.apache.derby.iapi.store.access.conglomerate.Co... |
derby-DERBY-2356-37ce91b8 | DERBY-2356 Make SSL server authentication optional (submitted by Bernt M. Johnsen)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@511785 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/Connection.java",
"hunks": [
{
"added": [
" public int clientSSLMode_ = org.apache.derby.jdbc.ClientBaseDataSource.SSL_OFF;"
],
"header": "@@ -136,7 +136,7 @@ public abstract class Connection implements java.sql.Con... |
derby-DERBY-2359-04db1600 | DERBY-2359: Code cleanups for the org.apache.derby.impl.store.access.* packages. Removed unused method init(), removed unused import, removed variable and fixed a little JavaDoc.
Patch file: derby-2359-4a-OpenConglomerateScratchSpace.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@609543 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/access/conglomerate/OpenConglomerateScratchSpace.java",
"hunks": [
{
"added": [],
"header": "@@ -31,7 +31,6 @@ import org.apache.derby.iapi.store.raw.Transaction;",
"removed": [
"import org.apache.derby.iapi.services.... |
derby-DERBY-2359-18176ce7 | DERBY-2359: Reduced visibility of a number of fields.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@527842 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/access/btree/index/B2I.java",
"hunks": [
{
"added": [
" private static final String PROPERTY_BASECONGLOMID = \"baseConglomerateId\";",
" private static final String PROPERTY_ROWLOCCOLUMN = \"rowLocationColumn\";",
... |
derby-DERBY-2359-4a2b0d9a | DERBY-2359 (2a): Rename methods starting with uppercase letters (Code cleanups for the org.apache.derby.impl.store.access.* packages).
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@517129 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/access/btree/BTreeController.java",
"hunks": [
{
"added": [
" if ((controlRow = ControlRow.get(open_btree, pageno)) == null)"
],
"header": "@@ -121,7 +121,7 @@ public class BTreeController extends OpenBTree... |
derby-DERBY-2359-f962ae71 | DERBY-2359: Removed a workaround for a problem in mssdk302
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@522442 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/access/btree/BTreeForwardScan.java",
"hunks": [
{
"added": [],
"header": "@@ -27,22 +27,14 @@ import org.apache.derby.iapi.services.sanity.SanityManager;",
"removed": [
"import org.apache.derby.iapi.store.access.congl... |
derby-DERBY-2359-fa091460 | DERBY-2359 (partial): Removed unused imports (from impl.store.access.*), moved a few blocks of class JavaDoc and fully qualified class-names in some @see tags.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@510538 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/access/CacheableConglomerate.java",
"hunks": [
{
"added": [],
"header": "@@ -21,9 +21,7 @@",
"removed": [
"import java.util.Properties;",
"import org.apache.derby.iapi.services.cache.CacheManager;"
]... |
derby-DERBY-236-54366745 | his patch fixes Derby 236 http://issues.apache.org/jira/browse/DERBY-236 - BootPassword gets written out in plain text in sane mode and in our test environment.
Changes include
1. remove sanity debug code in RawStore to not write bootpassword in plain text into the service.properties 2. currently the test harness does not seem to pass on the encryption related properties to the MultiTest and with change in #1, encryption wont be used for stress.multi. So changes made to RunTest to pass on the encryption, testEncryptionAlgorithm values to the MultiTest harness. Also changed mtTestCase to recognize the encryption properties and modify the database url to use for the MultiTest.
ran derbyall on jdk142 with no failures
verified that encryption run for stress.multi was running ok, by adding keepfiles=true to encryptionAll.properties and checking the service.properties for all the databases created as part of this encryptionAll testrun.
submitted by: ksunithaghm@gmail.com
git-svn-id: https://svn.apache.org/repos/asf/incubator/derby/code/trunk@169913 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2369-51e8282d | DERBY-2369 Use a single socket for shutdown down the network server and the ping to ensure
it is shutdown. Reduce the sleep time between pings to allow faster recognition that the
server is down.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@511353 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java",
"hunks": [
{
"added": [
"\tprivate final static int SHUTDOWN_CHECK_ATTEMPTS = 100;",
"\tprivate final static int SHUTDOWN_CHECK_INTERVAL= 100;"
],
"header": "@@ -144,8 +144,8 @@ ... |
derby-DERBY-237-43261ea4 | committing fix for DERBY-237 for ksunithaghm@gmail.com.
This patch fixes derby-237: Boot errors from store must not lose error messages/stack traces in between.
Actually nested exceptions from the boot error were not lost but their stack traces were not being written out into error stream which is why the entire stack traces of exceptions was not printed out to derby.log
git-svn-id: https://svn.apache.org/repos/asf/incubator/derby/code/trunk@169501 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java",
"hunks": [
{
"added": [
" /**",
" * print stack trace from the Throwable including",
" * its nested exceptions ",
" * @param t trace starts from this error",
... |
derby-DERBY-2370-0787955a | DERBY-2370: Fix incorrect results for EXISTS queries with SET operator
expressions. In particular:
1. Adds the ability to mark a FromList as "transparent", and updates
FromList.bindExpressions() to pass the outer FROM list down (instead
of "this") if the FromList is transparent.
2. Updates FromList.expandAll(...) to account for the fact that outer
FROM tables might now appear in a nested FromList (as a result of
"transparent" FromLists; see code comments for details).
3. Modifies the "setResultToBooleanTrue()" signature to return a
ResultSetNode (it was "void" previously).
4. Modifies ResultSetNode.setResultToBooleanTrue() to always return "this".
5. Modifies SetOperatorNode.setResultToBooleanTrue() so that it now creates
an internal "SELECT *" query whose FROM list contains just the
SetOperatorNode. Then we transform the "*" for the new SELECT into "TRUE"
and leave the SetOperatorNode's result columns UN-transformed. Finally,
mark the new SelectNode's FromList as "transparent" and return the new
SelectNode.
6. Updates tests where necessary (including changed behavior in union.sql)
and adds a new JUnit test, lang/ExistsWithSetOpsTest, to verify new
behavior.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@532509 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/FromList.java",
"hunks": [
{
"added": [
"\t/* Whether or not this FromList is transparent. A \"transparent\" FromList",
"\t * is one in which all FromTables are bound based on an outer query's",
"\t * FromL... |
derby-DERBY-2378-30644c89 | DERBY-2378: Committed derby-2378-01.diff, removing SecureServerTests's dependencies on non-public apis.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@515136 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-238-c1cd0b72 | DERBY-238: Fix propogation of testEncryptionAlgorithm property.
Committed for Myrna Van Lunteren <m.v.lunteren@gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@295037 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java",
"hunks": [
{
"added": [
"\tstatic String testEncryptionAlgorithm;"
],
"header": "@@ -78,6 +78,7 @@ public class RunList",
"removed": []
},
{
"added": [
... |
derby-DERBY-2380-08d2c15c | Remove the Dependent.makeValid() call. No calls are made to makeValid() through this interface.
Can be seen by the fact that most of the implementations are empty and not covered by the
code covergae with the tests, as well as there is no path to them. The one version
that was called was for GenericPreparedStatement in CurrentOfNode, but a better method
is the rePrepare() method on PreparedStatement.
Related to DERBY-2380.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@513401 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/GenericPreparedStatement.java",
"hunks": [
{
"added": [
"\t\tif (!upToDate()) {",
"\t\t\tPreparedStatement ps = statement.prepare(lcc);",
"",
"\t\t\tif (SanityManager.DEBUG)",
"\t\t\t\tSanityMana... |
derby-DERBY-2380-180546e3 | DERBY-2380 minor cleanup in dependency manager. No code changes apart from making some
fields final, but added comments to main objects in BasicDependencyManager as my understanding
of the code grows.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@517221 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/depend/BasicDependencyManager.java",
"hunks": [
{
"added": [
"import java.util.Enumeration;",
"import java.util.Hashtable;",
"import java.util.List;",
"import java.util.ListIterator;",
"import or... |
derby-DERBY-2380-3b451189 | DERBY-2380 (partial) Add the test changes for the change of PreparedStatement no longer bing a provider.
(missed from last commit). Changes are as a result of there is no such state as a closed
cursor, only open or non-existent, so no longer throw a cursor is closed message, but
instead a cursor not found error.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@516286 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2380-6995fff9 | DERBY-2380: Make the generated class eligible for gc once the statement is invalidated
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1566635 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/GenericPreparedStatement.java",
"hunks": [
{
"added": [
" private boolean compilingStatement;"
],
"header": "@@ -135,7 +135,7 @@ public class GenericPreparedStatement",
"removed": [
"\tboolean compi... |
derby-DERBY-2381-6eb50429 | DERBY-2381 ParameterMappingTest fails due to ArrayIndexOutOfBoundsException executing a procedure
Formerly, the server would rely on the input parameter type information received from the client to determine the output parameter type. This patch changes the server to look at the parameter metadata to determine the drda type to send.
It also enables the test ParameterMappingTest for client.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@534985 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java",
"hunks": [
{
"added": [
"\t\t\tint drdaType = FdocaConstants.mapJdbcTypeToDrdaType(colType,nullable,outlen);",
"\t\t\t\t"
],
"header": "@@ -6299,9 +6299,8 @@ class DRDAConnThread extends T... |
derby-DERBY-2385-bbe895f9 | DERBY-2385: Commit Narayanan's upgrade_v4.diff patch, which adds LOB-specific procedures.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@533893 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java",
"hunks": [
{
"added": [
" create_10_3_system_procedures(tc);"
],
"header": "@@ -9330,10 +9330,7 @@ public final class\tDataDictionaryImpl",
"removed": [
" ... |
derby-DERBY-239-24bbe757 | DERBY-239, committing on behalf of Suresh Thalamati.
This patch adds code to support online backup when jar operations
are running parallel to the backup. Jar files are not logged, but the
system catalogs updates are logged when a jar file is added/replaced.
If the jar file operations are allowed during the backup, system catalog
(sys.sysfiles) table in the backup database can have a reference to a jar file
that does not exist in the backup database. And also backup can contain
partial written jar files. To make a consistent online backup, this patch:
1) Makes Backup operation wait/fail for all the jar operations activity in progress to complete.
2) Blocks jar file operations when a backup is in progress.
This patch also adds a new test to test the online backup
with jar operations.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@357269 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/data/RFResource.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.store.raw.xact.RawTransaction;"
],
"header": "@@ -31,6 +31,7 @@ import org.apache.derby.iapi.store.access.FileResource;",
"remov... |
derby-DERBY-239-64ec5e2d | DERBY-239, fixing onlinebackuptest1.
committing on behalf of Suresh Thalamati.
This pacth fixes store/onlineBackupTest1.java failure on non-windows envirorment. Problem was unlogged operations thread and insert thread are working on the same connection. Test was failing becuase insert thread was committing the unlogged operation that was suppose to block the backup.
This pacth modified the test , so that these threads works on different conenctions,
Test passed on Windows XP and Linuix.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@354523 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-239-7739ad68 | anther patch for DERBY-239, committed on behalf of: Suresh Thalamati.
Fix to the problem found by Oystein while reviewing the previous online
backup patch(online_backup1.diff).
Backup of a container code was doing a seek incorrectly on the file container
instead of the backup file.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@329934 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/data/RAFContainer.java",
"hunks": [
{
"added": [
" \"expect \" +",
" AllocPage.FORMAT_NUMBER +",
" \"got \" +",
" ... |
derby-DERBY-239-b4b8d3b4 | DERBY-239, committing next phase checkin on behalf of Suresh Thalamati.
This patch adds code to support real-time online backup with unlogged
operations. A consistent backup can not be made if there are pending
transactions with unlogged operations or if unlogged operations
occur when backup is in progress. Because container files can be copied
to the backup before the transaction is committed and the data pages are
flushed as part of the commit. As there is no transaction log for unlogged
operations, while restoring from the backup database can not be restored to
a consistent state. To make a consistent online backup in this scenario, this patch:
1) blocks online backup until all the transactions with unlogged operation are
committed/aborted.
2) implicitly converts all unlogged operations to logged mode for the duration
of the online backup, if they are started when backup is in progress.
This patch also adds a test to test the online backup in parallel with some DML,
> DDL and unlogged operations.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@345355 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/store/raw/RawStore.java",
"hunks": [
{
"added": [
"",
"\t\tTransaction t = ",
" findUserTransaction(",
" ContextService.getFactory().getCurrentContextManager(), ",
" ... |
derby-DERBY-239-c10c4049 | DERBY-304 submitted on behalf of Suresh Thalamati
Fix :
1) Do not allow backup path to be any derby database directory. A directory is
assumed to be a derby database directory if it has service.properties file in it.
2) copy files needed from the database home into the backup one by one
instead of recursive copy from the top directory.
3) while copying the directories under jar directory, copy each sub directory
separately without copying any subdirectories under them (There should not
be any unless if user has created explicitly or created backup at that location).
4) Log and Seg0 directory are NOT already copied recursively, this was changed as part of
online backup work (DERBY-239).
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@379620 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/services/io/FileUtil.java",
"hunks": [
{
"added": [
" return copyDirectory( storageFactory, from, to, null, null, true);",
"",
" String[] filter, ",
" ... |
derby-DERBY-239-fbb88668 | committing onlinebackup_4.diff for DERBY-239.
committing on behalf of Suresh Thalamati.
This patch makes online backup call to wait/fail when unlogged operations like
create index are pending. It also fixes derby-523 bug my making the existing
log archive backup procedure to wait for the unlogged operation to complete.
-- Two new procedures are added to allow the users to make backup wait/fail
when unlogged operations are pending.
-- prevents users starting backup in an non-idle transactions to avoid backup
blocking forever if users starts backup in the same transaction as an
unlogged operation.
-- backup is not really transactional , to avoid any locking issues in the
futures; backup procedures ends the transaction by implicitly doing commit
when it is successful or rollback on any errors.
A new backup test is added to store suite to test the above scenarios.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@354898 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/SystemProcedures.java",
"hunks": [
{
"added": [],
"header": "@@ -46,7 +46,6 @@ import org.apache.derby.impl.sql.execute.JarDDL;",
"removed": [
"import org.apache.derby.iapi.reference.SQLState;"
]
}
]
... |
derby-DERBY-2397-14299573 | DERBY-2397 (refactor) Move drop code for ConglomerateDescriptor into ConglomerateDescriptor.drop().
Add various comments from information gained while refactoring code and minor cleanup.
One more dropping of a ConglomerateDescriptor needs to be modified to use the drop() method
but requires some cleanup for DERBY-1343
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@518343 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/ConglomerateDescriptor.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;",
"import org.apache.derby.iapi.sql.depend.DependencyManager;",
"import org.apache.d... |
derby-DERBY-2397-2d461fa6 | DERBY-2397 (partial) Remove old unused drop all meta data statements method. Code is never called
and has been copied into the upgrade code for use there.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@557301 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/db/BasicDatabase.java",
"hunks": [
{
"added": [],
"header": "@@ -566,50 +566,6 @@ public class BasicDatabase implements ModuleControl, ModuleSupportable, Property",
"removed": [
"\t/**",
"\t * Drop all Stored Prep... |
derby-DERBY-2397-4112e91a | DERBY-2397 (cleanup) Move drop code to SchemaDescriptor and AliasDescriptor and clean up
various comments related to these objects.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@517756 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/AliasDescriptor.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;",
"import org.apache.derby.iapi.sql.depend.DependencyManager;",
"import org.apache.derby.ia... |
derby-DERBY-2397-9213b423 | DERBY-2397 (partial) Move the drop logic for TriggerDecsriptor and ViewDescriptor to be centralized
in each class as an instance method. The methods do not yet have a common signature,
more investigation is needed for the ViewDescriptor's relationship to its TableDescriptor.
Added some comments to CreateViewNode to describe the set of descriptors and dependencies it creates.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@514416 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/TriggerDescriptor.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.sql.Activation;",
"import org.apache.derby.iapi.store.access.TransactionController;"
],
"header": "@@ -30,12 +30,14 @@ ... |
derby-DERBY-2397-997ee7f3 | DERBY-2397 (partial) Move drop code for constraints and indexes into their descriptors
as drop() methods instead of static methods in constant actions.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@539071 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/CheckConstraintDescriptor.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.error.StandardException;",
"import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;",
"import org.apache.der... |
derby-DERBY-2397-c2a81618 | DERBY-2397 (refactor) Refactor the implementation of the SQLJ routines (INSTALL_JAR,
REMOVE_JAR and REPLACE_JAR) so that the methods for the system procedures directly
call the code to install, remove or replace a jar file. Previously these routines
created ConstantActions and executed those, resulting in four extra classes that
just routed the procedures to the real code. Since these executions are not DDL
statements they should not use ConstantAction, no Activation was available (since no
compilation) which meant that executeConstantAction() was called with null which
is not the intended api for a ConstantAction. This resulted in NPEs if modifying
code in these jar constant action to use the activation as might be expected from
looking at other ConstantAction implementations.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@517770 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/SystemProcedures.java",
"hunks": [
{
"added": [
"import java.sql.DatabaseMetaData;",
"import java.sql.ResultSet;",
"import java.util.StringTokenizer;",
"import org.apache.derby.iapi.reference.SQLState;",
... |
derby-DERBY-2402-f9a06892 | DERBY-5459 Result set metadata are out of sync on client after underlying table is altered
Patch derby-5459-3. We now resend the result set metadata to the
client when the cursor is opened if the prepared statement gets
recompiled due to it being out of date when the server tries to
execute it (DRDAConnThread line 871). To detect this we introduce a
version counter which is incremented each time a statement is
(re)compiled and make a note which version's metadata gets sent to the
client as part of the explicit prepare. That version is compared with
the current version when we execute to make the decision whether to
resend metadata or not.
This also fixes DERBY-2402, a duplicate.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1205426 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/DRDAConnThread.java",
"hunks": [
{
"added": [
" database.getCurrentStatement().sqldaType = sqldaType;"
],
"header": "@@ -828,6 +828,7 @@ class DRDAConnThread extends Thread {",
"removed": [... |
derby-DERBY-2404-166c2728 | DERBY-2404: Remove hardcoded hostname / port in BadConnectionTest, get
the hostname and port from TestConfiguration at setUp time instead.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@515297 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2417-7a9732b4 | Add a test fixture to CursorTest that tests Statement.setCursorName only effects the next execution.
Doesn't work on client due to DERBY-2417.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@516075 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2418-9e3ce38b | DERBY-2418: testProtocol should not use a hardcoded port number
Committed for Julius Stroffek <Julius.Stroffek@sun.com>
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@521977 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/TestFile.java",
"hunks": [
{
"added": [
"import org.apache.derby.drda.NetworkServerControl;"
],
"header": "@@ -21,6 +21,7 @@",
"removed": []
}
]
},
{
"file": "java/drda/org/apache/derby/impl/drd... |
derby-DERBY-2419-530c8771 | DERBY-2419: Tighten encapsulation of state in TestConfiguration
Made port and hostname private, and adjusted affected tests.
Introduced DerbyConstants to hold constants used by/in the JUnit tests.
Patch file: derby-2419-3a-further_encapsulation.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@955529 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/TestConfiguration.java",
"hunks": [
{
"added": [
" private final static int DEFAULT_PORT = 1527;",
" private final static String DEFAULT_HOSTNAME = \"localhost\";"
],
"header": "@@ -65,10 +65,9 @... |
derby-DERBY-2419-6264d1e3 | DERBY-2419: Refactor some code in TestConfiguration so that SecureServerTest does not need to access TestConfiguration constants which ought to be private.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@519945 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/TestConfiguration.java",
"hunks": [
{
"added": [
""
],
"header": "@@ -255,6 +255,7 @@ public class TestConfiguration {",
"removed": []
},
{
"added": [
" {",
" ... |
derby-DERBY-2427-497f79d9 | DERBY-2427: Disable ClobStoredProcedureTest and BlobStoredProcedureTest for
weme6.1 since they are intended for client/server testing and weme6.1 is not
currently supported for that framework.
Contributed by: V. Narayanan (v.narayanan@sun.com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@519190 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-243-1d2a5693 | DERBY-243
Change connection toString to print connection id
contributed by David Van Couvering
git-svn-id: https://svn.apache.org/repos/asf/incubator/derby/code/trunk@189704 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java",
"hunks": [
{
"added": [
" ",
" /** Cached string representation of the connection id */",
" private String idString;"
],
"header": "@@ -143,6 +143,9 @@ public class E... |
derby-DERBY-2432-cccf5dda | DERBY-2432: Implement transaction timeout for XA transactions
Contributed by Julius Stroffek.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547674 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/net/NetXACallInfo.java",
"hunks": [
{
"added": [
" /** XA transaction timeout in milliseconds. The value less than 0 means",
" * that the time out is not specified. The value 0 means infinite timeout. */",
" ... |
derby-DERBY-2433-d9e02474 | DERBY-2433: Change the message which the network server prints if it needs to install a security manager but you have not configured a user-authorization scheme.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@542866 13f79535-47bb-0310-9956-ffa450edef68
| [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.