id stringlengths 22 25 | commit_message stringlengths 137 6.96k | diffs listlengths 0 63 |
|---|---|---|
derby-DERBY-2653-b52081a4 | DERBY-2653 Expose existing auto-generated key functionality through more JDBC APIs in Derby Client.
Add client support for columnIndex API's:
Connection.prepareStatement(String sql, int[] columnIndexes);
Statement.execute(String sql, int[] columIndexes);
Statement.executeUpdate(String sql, int[] columnIndexes);
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@629566 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/CallableStatement.java",
"hunks": [
{
"added": [
" super(agent, connection, sql, type, concurrency, holdability, java.sql.Statement.NO_GENERATED_KEYS, ",
" null, null,cpc);"
],
"header":... |
derby-DERBY-2661-4119c42d | DERBY-2661 (partial) Remove some unused and trivial methods from ExecutionContext and GenericExecutionContext.
Knock onto effect to other methods which no longer need to pass in an execution context.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@539007 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/GenericExecutionContext.java",
"hunks": [
{
"added": [],
"header": "@@ -52,8 +52,6 @@ class GenericExecutionContext",
"removed": [
"\tprivate ResultSet sourceRS;",
""
]
},
{
... |
derby-DERBY-2661-48d26291 | Minor code cleanup, removing some unused methods/fields.
Making activation private final in some classes.
Related to DERBY-2661
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@565966 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/IndexRowGenerator.java",
"hunks": [
{
"added": [
"import java.io.IOException;",
"import java.io.ObjectInput;",
"import java.io.ObjectOutput;",
"import org.apache.derby.catalog.IndexDescriptor;",... |
derby-DERBY-2661-53ce71e9 | DERBY-2661 (partial) Move getting of the run time statistics factory from the ExecutionContext to the ExecutionFactory. Remove the LanguageConnectionContext.getExecutionContext() method as it is no longer used.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@609053 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/execute/ExecutionContext.java",
"hunks": [
{
"added": [],
"header": "@@ -23,10 +23,6 @@ package org.apache.derby.iapi.sql.execute;",
"removed": [
"import org.apache.derby.iapi.error.StandardException;",
"",
... |
derby-DERBY-2661-6c000e85 | DERBY-2661 (partial) Change some callers of the ExecutionContext to get the ExecutionFactory directly
using the language connection context. Remove the getResultSetFactory from ExecutionContext.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@539254 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/db/ConsistencyChecker.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.sql.execute.ExecutionFactory;"
],
"header": "@@ -34,7 +34,7 @@ import org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList;",
... |
derby-DERBY-2661-ceb12d3f | DERBY-2661 (partial) Remove one use of ExecutuionContext with a direct use of ExecutionFactory.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@541732 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/RowUtil.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.error.StandardException;",
"import org.apache.derby.iapi.services.io.FormatableBitSet;",
"import org.apache.derby.iapi.sql.execute.ExecRow... |
derby-DERBY-2661-e5bbea45 | DERBY-2661 Remove one use of ExecutionContext and instead obtain the ExecutionFactory directly
for TableDescriptor.getEmptyExecRow.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@541393 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/TableDescriptor.java",
"hunks": [
{
"added": [
"import java.util.Enumeration;",
"import java.util.Iterator;",
"import java.util.List;",
"import org.apache.derby.catalog.Dependable;",
"... |
derby-DERBY-2667-02c89761 | DERBY-2667 - improve junit test runs - save off derby.log for failing fixtures.
patch (DERBY-2667_diff_02_21.txt) contributed by Manjula Kutty.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@630077 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2667-8cd67f55 | DERBY-2667: Create more robust junit TestRunner for running derby tests
Added property derby.tests.trace which enables printing of test name
and time spent.
Contributed by Ole Solberg.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@552046 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/TestConfiguration.java",
"hunks": [
{
"added": [
" private final static String KEY_TRACE = \"derby.tests.trace\";"
],
"header": "@@ -83,6 +83,7 @@ public class TestConfiguration {",
"removed": []
}... |
derby-DERBY-2667-b85a4504 | DERBY-2667 - modifying mix of tabs & spaces to only spaces in recently added
code (revision 630077).
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@630354 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2669-888ae01f | DERBY-2669
add test case to CollationTest2 to test case of setting teritory based
collation without setting territory attribute. I tried to make it so
that the test will run in norway, english and polish territory where the
test can handle results and not run in other territories - but sort of
hard to test. Let me know if the testDefaultJVMTerritoryCollation() fails,
and what the value of territory is for the vm it failed in.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@542175 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2673-023768a5 | DERBY-2673 If derby.system.home does not exist then first attempt to create it with File.mkdir() to
avoid requiring read permission on the parent folder.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@539614 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/services/monitor/FileMonitor.java",
"hunks": [
{
"added": [
" // Attempt to create just the folder initially",
" // which does not require read permission on",
" ... |
derby-DERBY-2674-79b7c086 | DERBY-2674 (partial) Stop running jdbc40 tests in the old test framework
The attached patch removes the TestPreparedStatementMethods test and
associated files that are not used by other tests.
An inspection of PreparedStatementTest showed that testing of
isPoolable/setPoolable on a closed PreparedStatement was omitted when
the test was ported to Junit. The patch adds test cases for this to
PreparedStatementTest.
Contributed by Øystein Grøvlen.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@540150 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2678-553cb1d0 | DERBY-2678
There are some test cases in CollationTest.java which should pass after rule 1b) in DERBY-2678 is fixed. They should all pass but they do
not because we just check if the 2 sides of the collation operation have same derivation or not and if not, then we throw an exception. But
for the case where one side has collation derivation of NONE and the other side has IMPLICIT, we should do the collation using the collation
type of the side that has collation derivation of NONE. Once we fix this, the CollationTest will fail and will need to be fixed. I am adding
comments in CollationTest.java wherever the rule 1b) should apply. Please fix these comments in the test when you are implementing rule 1b)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545381 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2686-71d73dd6 | DERBY-2686: Brushed up two skip methods; one to return 0 when a negative amount to skip is passed in, the other one will now break when 0 is returned from the underlying stream. No assumption is made about EOF, this is still up to the higher level streams, but the skip method will no longer hang forever if there is less bytes than requested in skip. Also removed some unused imports.
Patch file: derby-2686-3a.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@542005 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/EXTDTAInputStream.java",
"hunks": [
{
"added": [],
"header": "@@ -20,7 +20,6 @@",
"removed": [
"import java.io.ByteArrayInputStream;"
]
},
{
"added": [],
"header": "@@ -29,8 +28,6 @@ i... |
derby-DERBY-2687-5c759ff9 | DERBY-2687 store/encryptDatabase.sql fails intermittently with ClassNotFoundException, Log Corrupted
Patch derby-2687-2 + removed an additional unused line. This converts
encryptDatabase.sql to JUnit and also makes the test ignore a hash
collision case: the stored two byte digest of the secret key can in can
1/2**16 cases match the the digest of bogus key gotten by decoding the
encrypted key using the wrong bootpassword, thus allowing boot to
proceed using a wrong encryption key, leading to a boot crash (the
"boot issue").
Another issue (less likely) can still make the test fail (the
"bootpassword change issue"), but cf. the improvement issue DERBY-5622
which would resolve that.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1292084 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/Decorator.java",
"hunks": [
{
"added": [
" {",
" return encryptedDatabaseBpw(test, getBootPhrase(16));",
" }",
"",
" /**",
" * Decorate a set of tests to use an... |
derby-DERBY-269-963d9f4e | DERBY-269
This patch will provide a manual way of updating the statistics of all or just one index on a table
using the new stored procedure SYSCS_UTIL.SYSCS_UPDATE_STATISTICS. The signature of the new procedure
is as follows
SYSCS_UTIL.SYSCS_UPDATE_STATISTICS(schemaname, tablename, indexname)
If the user provides null for indexname then statistics will be updated for all the indexes on
schemaname.tablename otherwise statistics will be updated only for schemaname.tablename.indexname.
We implement this functionality by intercepting the stored procedure call and converting it to an
internal to Derby only ALTER TABLE syntax. This allows us to use lot of basic code needed for
schema/table name validation, privilege checking etc. Other than this, the actual code for implementing
the functionality was obtained from exisiting unused class execute/UpdateStatisticsConstantAction.java
I have removed that class from the codeline since the code inside it has now been moved into
AlterTableConstantAction.java
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@677998 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/IndexRowGenerator.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.DataTypeDescriptor;"
],
"header": "@@ -39,6 +39,7 @@ import org.apache.derby.iapi.sql.execute.ExecutionContext;",
"... |
derby-DERBY-269-c2b03c4c | DERBY-3788 and DERBY-269
Adding a new test case which will show that updating the statistics will make a query pickup better
index compare to prior to statistics availability
+ //
+ //Check statistics update causes most efficient index usage
+ //Create a table with 2 non-unique indexes on 2 different columns.
+ //The indexes are created when the table is still empty and hence
+ //there are no statistics available for them in sys.sysstatistics.
+ //The table looks as follows
+ // create table t2(c21 int, c22 char(14), c23 char(200))
+ // create index t2i1 on t2(c21)
+ // create index t2i2 on t2(c22)
+ //Load the data into the table and running following query will
+ //pickup index t2i1 on column c21
+ // select * from t2 where c21=? and c22=?
+ //But once you make the statistics available for t2i2, the query
+ //will pickup index t2i2 on column c22 for the query above
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@681085 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/RuntimeStatisticsParser.java",
"hunks": [
{
"added": [
"",
" /**",
" * @param tableName",
" * @param indexName",
" * @return true if passed indexName was used for Index Scan R... |
derby-DERBY-269-c8131776 | DERBY-269 Cleaning up code comments in AlterTableConstantAction.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@678460 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/AlterTableConstantAction.java",
"hunks": [
{
"added": [],
"header": "@@ -664,14 +664,8 @@ class AlterTableConstantAction extends DDLSingleTableConstantAction",
"removed": [
"\t\t//= null;",
"/*\t\t\t h... |
derby-DERBY-2692-55d4cdfa | DERBY-2692: Client driver doesn't chain exceptions received from the server
Always use initCause() to chain exceptions, also when they are chained
with setNextException().
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543428 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/ExceptionFormatter.java",
"hunks": [
{
"added": [
" java.lang.Throwable throwable = e.getCause();"
],
"header": "@@ -36,11 +36,7 @@ public class ExceptionFormatter {",
"removed": [
" ... |
derby-DERBY-2692-96889c19 | DERBY-2692: Client driver doesn't chain exceptions received from the server
This patch makes the client recreate the chain of exceptions sent by
the server instead of concatenating the messages.
Description of the changes:
* java/client/org/apache/derby/client/am/Sqlca.java:
- added a message number parameter to the methods that retrieved
mesage and SQL state
- fixed SqlErrmc parsing (used the correct delimiter) and renamed
sqlErrmcTokens_ to sqlErrmcMessages_ since the SqlErrmc was split
into its separate messages, not its tokens
- added a string array called sqlStates_, which keeps the SQL states
for each message in the chain
* java/client/org/apache/derby/client/am/SqlException.java
- added a message number field to keep track of which message in the
SQLCA to use
- changed the constructor that takes an Sqlca argument so that it
recursively builds the chain of exceptions when the Sqlca contains
many messages
* java/client/org/apache/derby/client/am/ExceptionFormatter.java
- removed the printing of SqlErrmcTokens in printTrace(), because
(a) that method was renamed, and (b) it contains the exact same
information as SqlErrmc which is printed anyway
* java/testing/org/apache/derbyTesting/junit/BaseJDBCTestCase.java
- changed assertSQLState() so that it checks nested exceptions on
the client the same way as on embedded
* java/testing/org/apache/derbyTesting/functionTests/tests/lang/ProcedureInTriggerTest.java
- enabled an assert that previously only worked on embedded
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543090 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/SqlException.java",
"hunks": [
{
"added": [
" /** Tells which of the messages in the SQLCA this exception refers to",
" * (counting from 0). For engine generated errors only. */",
" private transient int ... |
derby-DERBY-2694-f81f6103 | DERBY-2694: Checkin Anurag's patch to correct the truncation of large utf-8 strings sent over the network.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544195 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/DDMWriter.java",
"hunks": [
{
"added": [
" ",
"\tprivate static final byte MULTI_BYTE_MASK = (byte) 0xC0;",
"\tprivate static final byte CONTINUATION_BYTE = (byte) 0x80;"
],
"header": "@@ -55,6... |
derby-DERBY-2699-cf427292 | DERBY-2699: Change how collation elements for ESCAPE clause are calculated
Since we only need to know whether or not there is a single collation
element, just look at the first two elements to see if we have none, one
or many.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1428305 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/WorkHorseForCollatorDatatypes.java",
"hunks": [
{
"added": [],
"header": "@@ -21,9 +21,6 @@",
"removed": [
"import org.apache.derby.iapi.types.DataValueDescriptor;",
"import org.apache.derby.iapi.types.Boole... |
derby-DERBY-2701-613392c3 | DERBY-2701: many sealing violation errors in ibm142 and ibm15 jvm test
runs of junit tests
Removed references to StandardException from java/tools.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@541977 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/tools/org/apache/derby/impl/tools/ij/utilMain.java",
"hunks": [
{
"added": [],
"header": "@@ -22,7 +22,6 @@",
"removed": [
"import org.apache.derby.iapi.reference.JDBC30Translation;"
]
},
{
"added": [],
"header": "@@... |
derby-DERBY-2707-9b529367 | DERBY-2707: Inadequate clean-up in many jdbc4 tests
Fixed the tearDown() methods in many of the jdbc4 tests.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@542016 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2711-f302c785 | DERBY-2711: Added missing throw, made variable blob final, misc. JavaDoc/documentation changes.
Patch file: derby-2711-3a-additional.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545501 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/UpdateableBlobStream.java",
"hunks": [
{
"added": [
"/*"
],
"header": "@@ -1,4 +1,4 @@",
"removed": [
"/* "
]
},
{
"added": [
" * Updateable blob stream is a wrap... |
derby-DERBY-2712-80424bf6 | DERBY-2712: If large Clob is updated after getting a Reader, the reader continues to point to old data.
Patch file: derby-2712v3.diff
Patch contributed by Anurag Shekhar.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@546831 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/ClobUpdateableReader.java",
"hunks": [
{
"added": [
"import java.io.EOFException;",
"import java.io.InputStream;",
"import java.sql.SQLException;",
"import org.apache.derby.iapi.reference.SQLState;",
... |
derby-DERBY-2713-d2b4fdb0 | DERBY-2713: Ensure that a temporary file is not created for a lob
obtained from resultset unless user updates it.
Contributed by Anurag Shekhar.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545197 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java",
"hunks": [
{
"added": [
" control = new LOBStreamControl (con.getDBName(), blobBytes);"
],
"header": "@@ -112,8 +112,7 @@ final class EmbedBlob extends ConnectionChild implements Blob",
... |
derby-DERBY-2714-e0f042af | DERBY-2714: SecureServerTest spends five minutes waiting for a server to start
Abort waiting for the server to come up if the server process has terminated.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@542449 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java",
"hunks": [
{
"added": [
" private Process serverProcess;"
],
"header": "@@ -67,6 +67,7 @@ final public class NetworkServerTestSetup extends BaseTestSetup {",
"removed": []
... |
derby-DERBY-2715-ce145efd | DERBY-2715: Fix assertionFailedError in LobStreamsTest and
ClobUpdateableReaderTest.
Patch contributed by Anurag Shekhar.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547394 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/LOBStreamControl.java",
"hunks": [
{
"added": [
" private void deleteFile (StorageFile file) throws IOException {",
" try {",
" final StorageFile sf = file;",
" AccessContr... |
derby-DERBY-2716-ea2bbddb | DERBY-2716
fixed bad parsing of java version argument. In the process also discovered
that J2ME environment also reproduces DERBY-2703, so changed the test case
to also not run in this enviroment. I just brute forced the java version
check, hopefully 2703 will get fixed before needing to add more jvm's to
ignore.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@542697 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2718-63616cca | DERBY-2718 - LobStreamsTest and BlobClob4BlobTest fail with JSR169 because missing support for encryption. Now, only running encryption part with vms supporting JDBC3 and higher.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543343 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2720-0e5e425c | DERBY-2720: remove dead code associated with unsupported National Char implementation
Removed dead code.
Patch file: derby-2720-1a-remove_sqlchar_getXFormat.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1172535 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/SQLChar.java",
"hunks": [
{
"added": [],
"header": "@@ -72,7 +72,6 @@ import java.sql.Time;",
"removed": [
"import java.text.DateFormat;"
]
},
{
"added": [],
"header": "@@ -2968,42 ... |
derby-DERBY-2720-aff8c993 | DERBY-2720: remove dead code associated with unsupported National Char implementation
Removed unused method DataType.getNationalString and its implementations.
Patch file: derby-2720-2a-remove_getNationalString.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1181679 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/DataType.java",
"hunks": [
{
"added": [],
"header": "@@ -21,18 +21,11 @@",
"removed": [
"import org.apache.derby.iapi.types.DataValueDescriptor;",
"import org.apache.derby.iapi.types.DataTypeDescriptor;",
... |
derby-DERBY-2722-649830ff | DERBY-2722
Committing changes which will make sure that we set the collation to current schema's collation for the return character string from XMLSERIALIZE.
Don't have to make any changes for CHAR and VARCHAR functions because these functions gets translated into CAST by the parser and I have
already checked in changes for the result of CAST to have the collation of current schema.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543183 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2722-bcb6e16a | DERBY-2722
Before making call to XMLSERIALIZE, we should check if the classpath includes the required Xalan/JAXP classes. Otherwise the test will fail
with jvms, where these classes can't be found.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543209 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2723-7fb68b4d | DERBY-2723
The RoutineAliasInfo for user defined function stores the collation infomraiton about it's return type and parameters if they happen to be
character string type. This commit makes sure that for those DTDs, we use the collation of the schema in which the function is getting
defined. The existing code creates these DTDs at the parse time but the SchemaDescriptor for the function is not available at that stage. To
get around this, at the bind time, we check in CreateAliasNode if we are dealing with any character string types in the function definition.
If yes, then we create new DTDs which are based on the ones created during the parse time, but we set the correct collation informaiton on
them. And then we recreate a new RoutineAliasInfo using the infomration from parse time RoutineAliasInfo and the newly created DTDs. I have
added a CREATE FUNCTION using character string types in CollationTest. Code to use this collation information correctly when the function
gets used inside a sql will go in as a separate patch.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547206 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/CreateAliasNode.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.DataTypeDescriptor;",
"import org.apache.derby.iapi.types.StringDataValue;",
"import org.apache.derby.catalog.types.TypeDesc... |
derby-DERBY-2724-353feeeb | DERBY-2724
Commiting changes so that the resultant character string from CURRENT ISOLATION, CURRENT_USER, SESSION_USER, SYSTEM_USER, CURRENT SCHEMA
and CURRENT SQLID will take the collation type of UCS_BASIC.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544180 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/SpecialFunctionNode.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.StringDataValue;"
],
"header": "@@ -24,6 +24,7 @@ package\torg.apache.derby.impl.sql.compile;",
"removed": []
... |
derby-DERBY-273-c73df2b0 | - DERBY-273_2 The derbynet/dataSourcePermissions_net.java test fails intermittently - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@380099 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-273-cdad0a15 | DERBY-273 The derbynet/dataSourcePermissions_net.java test fails intermittently - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@378903 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-273-d9ffc2bc | - rollback DERBY-273.patch - Patch by Tomohito Nakayama (tomonaka@basil.ocn.ne.jp)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@379091 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2730-78afc5bc | DERBY-2730 Embedded method Blob.getBinaryStream. Submitted by V.Narayanan
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@546838 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/UpdateableBlobStream.java",
"hunks": [
{
"added": [
" ",
" /**",
" * Position in Blob where to stop reading.",
" */",
" private long maxPos;",
" "
],
... |
derby-DERBY-2730-cd727e77 | DERBY-2730 Embedded method Clob.getCharacterStream. Submitted by V.Narayanan
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547203 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/ClobUpdateableReader.java",
"hunks": [
{
"added": [
" /**",
" * Position in Clob where to stop reading.",
" */",
" private final long maxPos;",
" "
],
"header": ... |
derby-DERBY-2735-0d4b4001 | DERBY-2735 (partial) Basic working implementation of the SYSCS_SET_USER_ACCESS and tests for it.
Need more cleanup work including checking invlaid parameters for the procedure and function.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543281 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2735-3243663a | DERBY-2735 Test that the new routines to get the user's connection access level are restricted to the database owner.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544890 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2735-72b93c59 | DERBY-2735 (partial) Add the system procedure & function for connection level authorization
with SYSCS_GET_USER_ACCESS mostly implemented and SYSCS_SET_USER_ACCESS as a stub.
Add some testing of SYSCS_GET_USER_ACCESS.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543254 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/SystemProcedures.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.reference.Property;",
"import org.apache.derby.iapi.services.property.PropertyUtil;",
"import org.apache.derby.iapi.util.StringUtil;"
... |
derby-DERBY-2735-9174d61f | DERBY-2735 Make 28502 exception statement level severity so that IDUtil.getUserAuthorizationId()
can be used anywhere a valid authentication identifier is required. Ensure a non-session level severity
exception during a connection creation failure is handled as a session level severity.
Add testing of invalid authentication identifiers to SYSCS_GET_USER_ACCESS.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544684 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.error.ExceptionSeverity;"
],
"header": "@@ -39,6 +39,7 @@ import org.apache.derby.iapi.jdbc.AuthenticationService;",
"removed": []
... |
derby-DERBY-2735-9cf7d230 | DERBY-2735 (partial) More tests and fix the return from SYSCS_GET_USER_ACCESS when default connection
mode is not set.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543302 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2735-d36746b5 | DERBY-2735 Fix the JDBC 4 TestDbMetaData test including simplyfying it a little
so that the builtin functions can be defined once the the sub lists generated
from that, rather than having three separate lists to keep up to date.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543531 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2739-273e6aca | DERBY-2739: Test XPath function call prefixed with namespace
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1054991 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2739-52837960 | DERBY-2739: Use DOM interfaces to implement XML operators
Make SqlXmlUtil use JAXP and DOM interfaces and factory classes to
provide support for XML serialization and XPath queries.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1073874 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/services/loader/ClassInspector.java",
"hunks": [
{
"added": [],
"header": "@@ -28,11 +28,6 @@ import org.apache.derby.iapi.error.StandardException;",
"removed": [
"import java.util.StringTokenizer;",
"import java.... |
derby-DERBY-2739-7004c178 | DERBY-2739: Test format of numeric values returned by the XMLQUERY operator
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1054962 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2739-911d88c4 | DERBY-2739: Stricter checks in XMLTypeAndOpsTest
Changed many assertStatementError() calls to assertCompileError().
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1055031 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2740-9fd3c004 | DERBY-2740: Set start and stop keys correctly when multi-probing an index that
is defined on more than one column. Patch also adds appropriate test cases.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544175 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/TableScanResultSet.java",
"hunks": [
{
"added": [
"\t\t * happen if we plug it into first column of \"startPositionRow\".",
"\t\t * So in this case startPositionRow[0] functions as a \"place-holder\"",
"\t\t... |
derby-DERBY-2744-3f677d15 | DERBY-2744 DERBY-2242 Remove the testing of the new JDBC 4.0 DatabaseMetaData functions from
the harness based metadata tests that are already covered by the JUnit jdbc4.TestDbMetaData test.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@543544 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2754-90eecadc | DERBY-2754 Client connections should not fail if permission is not granted to read derby.client.traceLevel and derby.client.traceDirectory
Ignore properties if there is no permission to read them.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545251 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/jdbc/ClientBaseDataSource.java",
"hunks": [
{
"added": [
"import java.security.PrivilegedActionException;"
],
"header": "@@ -25,6 +25,7 @@ import java.io.Serializable;",
"removed": []
},
{
"added": [
... |
derby-DERBY-2757-84f4b0ae | DERBY-2757: No longer flunk server boot when authentication is not enabled.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544934 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2758-3bdf6de7 | DERBY-2758: ODBC metadata function "SQLForeignKeys" returns different
results in 10.3.
Added test case. Contributed by Jørgen Løland.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545865 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2758-c4b18e65 | DERBY-2758: Add a JUnit test case to the existing JUnit DatabaseMetaDataTest.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@546312 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2758-fde4b69a | DERBY-2758: Update ODBCMetadataGenerator to create an ODBC version of the
getCrossReference metadata query. This is required because, as of DERBY-2610,
the JDBC version of that query no longer allows pattern matching on table
names. Since the ODBC SQLForeignKeys function, which is mapped onto the
getCrossReference metadata query, depends on pattern matching for correct
behavior, we now create an ODBC-version of getCrossReference that allows
pattern matching as in pre-10.3 releases. The SQLForeignKeys function is
then mapped to the new, ODBC-specific version of the query.
Contributed by: Jorgen Loland (jorgen.loland@sun.com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545321 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/build/org/apache/derbyBuild/ODBCMetadataGenerator.java",
"hunks": [
{
"added": [
"\t// Types of changes that are possible. There are four",
"\t//\t2. Where clause:",
"\t//\t\tChange the where clause of the query. For ex. ",
"\t//\t\tused... |
derby-DERBY-276-ff0fafb5 | DERBY-276 The functionality of next,previous,first,last,beforeFirst,afterLast,relative and absolute should be
aligned with ch. 14.2.2 in the JDBC 3.0 spec. Another issue found: absolute(0) should behave like beforeFirst().
Patch contributed by Bernt Marius Johnsen - Bernt.Johnsen@Sun.COM
git-svn-id: https://svn.apache.org/repos/asf/incubator/derby/code/trunk@208683 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/execute/ScrollInsensitiveResultSet.java",
"hunks": [
{
"added": [
" // Absolute 0 is defined to be before first!",
" setBeforeFirstRow();",
" return null;"
... |
derby-DERBY-2760-88ff3fa9 | DERBY-2760: Clean-up issues for UTF8Util.java. Added tests. Added internal result-holder class to UTF8Util.
Patch-file: derby-2760-2b-inner_class.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@605531 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/util/UTF8Util.java",
"hunks": [
{
"added": [],
"header": "@@ -40,11 +40,6 @@ import java.io.UTFDataFormatException;",
"removed": [
" /** Constant used to look up character count in an array. */",
" private s... |
derby-DERBY-2760-a8452cff | DERBY-2760: Clean-up issues for UTF8Util.java. Added a few more tests to improve test coverage.
Patch file: derby-2760-3a-extra_tests.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@616786 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2763-a8908bdc | DERBY-2763: Commit Narayanan's patch coordinating simultaneous reads and writes to a LOB.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@547382 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/Blob.java",
"hunks": [
{
"added": [
" //The Blob is locator enabled. Return a instance of the ",
" //UpdateSensitive stream which wraps inside it a ",
" //Buffered Locator stream. T... |
derby-DERBY-2768-9484ceb2 | DERBY-2768: Do cleanup (closing stmts., conns.) on failures in
jdbcapi/BlobClob4BlobTest.java
jdbcapi/BlobClob4BlobTest.java should cleanup when detecting failures
['fail("FAIL - ....");']. When failures occur, as when doing
compatibility testing for Blob/Clob locator support, other failures
will occur later. Missing cleanup makes subsequent tests fail.
Contributed by Ole Solberg.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544861 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2769-1e5b2aac | DERBY-2769 Implement error handling/parameter checking in Clob.setString
Contributed by Yun Lee (yun dot lee dot bj at gmail dot com)
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@769948 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/client/am/Clob.java",
"hunks": [
{
"added": [
"",
"",
"import org.apache.derby.shared.common.reference.SQLState;"
],
"header": "@@ -21,14 +21,13 @@",
"removed": [
"import java.io.BufferedInp... |
derby-DERBY-2770-5bb6623a | DERBY-2770: Fixed BlobClob4BlobTest from failing by changing the expected SQLState.
Patch file: derby-2770-1a.diff
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544856 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2770-855f0de6 | DERBY-2770: testBlobAfterCommit(....jdbcapi.BlobClob4BlobTest) fails
with 'Unexpected SQL state. expected:<XJ[073]> but was:<XJ[215]>'
Changed error message to reflect that XJ215 is used both after free()
has been called on a Lob and after the lob's transaction has been
committed.
Changed SQL state when locators are invalid from XJ073 to XJ215 on the
client driver.
Patch contributed by Øystein Grøvlen.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545910 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2772-293a5e65 | DERBY-2772 Add system procedure SYSCS_UTIL.SYSCS_EMPTY_STATEMENT_CACHE() that ages statements
out of the cache.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@544993 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/SystemProcedures.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.services.cache.CacheManager;"
],
"header": "@@ -39,6 +39,7 @@ import org.apache.derby.iapi.error.PublicAPI;",
"removed": []
}
... |
derby-DERBY-2775-01b59615 | DERBY-2775 DERBY-2917 (partial) Remove final set method (setCollationType) on TypeDescriptor to make TypeDescriptor and DataTypeDescriptor logically immutable. Required cleanup to ensure that a routine definition is only passed catalog types (TypeDescriptor) and also resulted in a cleanup of CreateAliasNode by encapsulating collation changes within the type system and RoutineAliasInfo. Also required that the tyep system use a valid JDBC Types constant for the XML type, using the Types.SQLXML from JDBC4.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@617665 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/types/BaseTypeIdImpl.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.reference.JDBC40Translation;"
],
"header": "@@ -35,6 +35,7 @@ import org.apache.derby.iapi.services.io.StreamStorable;",
"removed"... |
derby-DERBY-2775-2afe5788 | DERBY-2775 Add some comments to the main type classes to indicate their roles:
TypeId Information about the type without specific attributes
TypeDescriptor Catalog type descriptor
DataTypeDescriptor Runtime type descriptor
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@555028 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/types/BaseTypeIdImpl.java",
"hunks": [
{
"added": [
" ",
" private int formatId;",
" /**",
" * JDBC type - derived from the format identifier.",
" */",
" transient ... |
derby-DERBY-2775-32812bde | DERBY-2775 (partial) Add getNullabilityType() method to DataTypeDescriptor to return
a DataTypeDescriptor with the nullability changed. Returns the same object if the
nullability would be unchanged.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545609 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/DataTypeDescriptor.java",
"hunks": [
{
"added": [
" "
],
"header": "@@ -252,6 +252,7 @@ public final class DataTypeDescriptor implements TypeDescriptor, Formatable",
"removed": []
}
]
},
{
... |
derby-DERBY-2775-7a361f26 | DERBY-2775 Remove last use of DataTypeDescriptor.setNullability() to make DTD's use immutable wrt nullability. Fixes DERBY-3346 and DERBY-3342 which were cases when a query was getting the incorrect nullability for some columns due to the mutability of DTD when shared across nodes.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@616853 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2775-7dda5d5a | DERBY-2775 Change ColumnDefinition to have a getType() method and a setNullability() method to move
towards having an immutable DataTypeDescriptor.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@554824 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java",
"hunks": [
{
"added": [
" DataTypeDescriptor type;"
],
"header": "@@ -70,7 +70,7 @@ public class ColumnDefinitionNode extends TableElementNode",
"removed": [
" ... |
derby-DERBY-2775-81de1884 | DERBY-2775 (partial) Remove the setCollation methods from TypeDescriptor as it presents a read-only view
of a type.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545579 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/catalog/TypeDescriptor.java",
"hunks": [
{
"added": [],
"header": "@@ -159,16 +159,6 @@ public interface TypeDescriptor",
"removed": [
"\t/**",
"\t * Set the collation type of this TypeDescriptor",
"\t * @par... |
derby-DERBY-2775-85ddc17f | DERBY-2775 (partial) Change AggregateDefinition to use a DataTypeDescritor as the
declared type instead of a TypeDescriptor. Code using the api assumed the object
was a DTD anyway.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@546478 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/AggregateDefinition.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.DataTypeDescriptor;",
""
],
"header": "@@ -21,10 +21,10 @@",
"removed": [
"import java.lang.Stri... |
derby-DERBY-2775-9ed7c4df | DERBY-2775 Make DataTypeDescriptor immutable by removing the set methods for collation type and derivation.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@617162 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java",
"hunks": [
{
"added": [
"import org.apache.derby.iapi.types.StringDataValue;"
],
"header": "@@ -32,6 +32,7 @@ import org.apache.derby.iapi.types.DataTypeDescriptor;",
"removed": ... |
derby-DERBY-2775-ae196bc4 | DERBY-2775 Remove setNullability methods on TypeDescriptorImpl and DataTypeDescriptor to make the types actually immutable wrt nullability.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@616908 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/DataTypeDescriptor.java",
"hunks": [
{
"added": [],
"header": "@@ -1118,17 +1118,6 @@ public final class DataTypeDescriptor implements TypeDescriptor, Formatable",
"removed": [
"",
"\t/**",
"\t * S... |
derby-DERBY-2775-b25481fa | DERBY-2775 (partial) Add a method to obtain an logically immutable DataTypeDescriptor based upon a DataTypeDescriptor but with different collation settings. Add setCollationInfo methods in ValueNode to change its collation settings and hence its (soon to be) immutable data type. Use ValueNode.setCollationInfo for the simple cases where a node's collation is set from another type.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@608901 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/iapi/types/DataTypeDescriptor.java",
"hunks": [
{
"added": [
" dtd.collationDerivation = StringDataValue.COLLATION_DERIVATION_IMPLICIT;"
],
"header": "@@ -115,8 +115,7 @@ public final class DataTypeDescriptor implements T... |
derby-DERBY-2775-ba1b7ec2 | DERBY-2775 (partial) Clarify some type handling for ResultColumn and its expression by making
callers explictly get the expression's type from the expression, rather than having
a method in ResultColumn that doesn't do what it indicates it did.
Make VirtualColumnNode's type just refect its source node.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@554012 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/GroupByNode.java",
"hunks": [
{
"added": [
"\t\t\tnewColumnRef.setType(newRC.getExpression().getTypeServices());"
],
"header": "@@ -625,7 +625,7 @@ public class GroupByNode extends SingleChildResultSetNode",
... |
derby-DERBY-2775-bd664569 | DERBY-2775 (partial) Remove a couple of cases where DataTypeDescriptor.setNullability() was being called and replace with the immutable DataTypeDescriptor calls.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@608966 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/TableElementList.java",
"hunks": [
{
"added": [
" ",
" findColumnDefinition(colName).setNullability(false);"
],
"header": "@@ -936,8 +936,8 @@ public class TableElementList extend... |
derby-DERBY-2775-cb8f1093 | DERBY-2775 (partial) Cleanup of type handling in ColumnDefinitionNode & its sub-class and uses.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@546372 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java",
"hunks": [
{
"added": [
"\t",
" /**",
" * The data type of this column.",
" */",
" DataTypeDescriptor\t\t\tdataTypeServices;",
" "
... |
derby-DERBY-2775-d1e9d3cb | DERBY-2775 (partial) Remove one use of DataTypeDescriptor.setNullability() that was not required. Nullabilty was being set for system columns that needed to be upgraded in old databases from an incorrect value. Using the nullability of the original definition is already correct and avoids redundant setting. Changed the name of the method as it is now a generic fix a system column rather than being specific to nullability.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@608580 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java",
"hunks": [
{
"added": [
"\t *\tUpgrade an existing system catalog column's definition",
" * by setting it to the value it would have in a newly",
" * created database. Th... |
derby-DERBY-2775-d5ce63a7 | DERBY-2775 (cleanup) Change CastNode to store the type in the facility provided by its
super-class ValueNode, and not store the type twice.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@552038 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/CastNode.java",
"hunks": [
{
"added": [
"\tprivate int\t\t\t\t\ttargetCharType;",
"\tprivate boolean forDataTypeFunction = false;",
" "
],
"header": "@@ -69,12 +69,11 @@ import java.util.V... |
derby-DERBY-2775-ed824068 | DERBY-2775 Cleanup ValueNode.getTypeServices to not throw an exception and cleanup some implementations
of getTypeServices to be clear on what they are returning. Change the language compile code to
use the new immutable method to get a nullable DataTypeDecriptor.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@554399 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ColumnDefinitionNode.java",
"hunks": [
{
"added": [
" if (dataTypeServices != null)",
" this.dataTypeServices = getDataTypeServices().getNullabilityType(false);"
],
"h... |
derby-DERBY-2775-ef158f22 | DERBY-2775 (partial) Some cleanup of type handling in ValueNode towards the aime that the
type of a node is defined by getTypeServices() consistently so that sub-classes can override
getTypeServices() and ensure all other code will get the correct type.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545566 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ConditionalNode.java",
"hunks": [
{
"added": [
" getTypeServices(),\t// cast to dominant type"
],
"header": "@@ -494,7 +494,7 @@ public class ConditionalNode extends ValueNode",
... |
derby-DERBY-2775-f5efedc1 | Add some test cases for nullability of the value from a CASE expression. One of the cases failed before revision 616853 for DERBY-2775.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@616873 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2776-d8b9ea30 | DERBY-2776 Internally generated CAST nodes should not pick up the collation of the current schema. In order to implement this, the CAST
nodes generated directly by the user sql (parser) will set a flag on the cast node to indicate that they are externally generated CAST
nodes. During the bind phase of a CAST node, we will check if the node is externally generated. If yes, then we will have it pick up
the collation of the compilation schema otherwise we will leave the collation unchanged.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@551033 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/CastNode.java",
"hunks": [
{
"added": [],
"header": "@@ -31,7 +31,6 @@ import org.apache.derby.iapi.error.StandardException;",
"removed": [
"import org.apache.derby.iapi.types.StringDataValue;"
]
}... |
derby-DERBY-2777-0a29524e | DERBY-2777
Fixed the combination of COALESCE and parameters so that the parameters take their collation from the context and not from the current
compilation schema
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545347 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/CoalesceFunctionNode.java",
"hunks": [
{
"added": [],
"header": "@@ -36,11 +36,9 @@ import org.apache.derby.iapi.services.compiler.LocalField;",
"removed": [
"import org.apache.derby.iapi.types.StringDataValue;"... |
derby-DERBY-2777-0f58b386 | DERBY-2777
Make sure that for operators like BOOLEAN, the collation information is picked from the context and not from the current compilation schema.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545708 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2777-168a4f8d | DERBY-2777
Fixed the combination of CONCATENATION and parameters so that the parameters take their collation from the context and not from the current
compilation schema
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545443 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/ConcatenationOperatorNode.java",
"hunks": [
{
"added": [
"\t\t\t\t//collation of ? operand should be picked from the context",
"\t\t\t\tleftOperand.getTypeServices().setCollationDerivation(",
"\t\t\t\t\t\tri... |
derby-DERBY-2777-1c873332 | DERBY-2777
Fixed the combination of IS NULL and parameters so that the parameters take their collation from the context and not from the current
compilation schema. Also, the earlier checkin for test case of CONCATENATION was incorrect. This commit fixes that too.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545593 13f79535-47bb-0310-9956-ffa450edef68
| [] |
derby-DERBY-2777-63385d47 | DERBY-2777
Fixed the combination of IN operator and parameters so that the parameters take their collation from the context and not from the current
compilation schema.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545319 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/BinaryListOperatorNode.java",
"hunks": [
{
"added": [],
"header": "@@ -27,7 +27,6 @@ import org.apache.derby.iapi.reference.SQLState;",
"removed": [
"import org.apache.derby.iapi.types.StringDataValue;"
... |
derby-DERBY-2777-8cf0ef9b | DERBY-2777
Fixed the combination of binary operator and parameters so that the parameters take their collation from the context and not from the current
compilation schema. eg ? = TABLENAME
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@545323 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/BinaryOperatorNode.java",
"hunks": [
{
"added": [],
"header": "@@ -316,9 +316,6 @@ public class BinaryOperatorNode extends ValueNode",
"removed": [
"\t\t\t//collation of ? operand should be same as the compilati... |
derby-DERBY-2777-9841c0dd | DERBY-2777
We were incorrectly trying to set collation info on non-character string types. This commit will remove that code.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@553793 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java",
"hunks": [
{
"added": [
" /**",
" * This method gets called for non-character string types and hence no need ",
" * to set any collation info. Collation applies only to ... |
derby-DERBY-2777-db9ad011 | DERBY-2777
Currently, the parameters in TRIM clause always pickup their collation from the compilation schema. That logic is not
complete. I am fixing that logic here along with addition of some tests.
For the sake of explanation, let me use the following syntax for TRIM clause
TRIM (leftOperand FROM receiver)
With the fix in this patch, if receiver is a parameter, it will set it's collation using following logic
1)check if leftOperand is not a parameter. If yes, then receiver will pick up collation from leftOperand. If not, goto step 2
2)receiver picks up the collation of the compilation schema because everything in the TRIM clause is ?
Next, if leftOperand is a parameter, it will set it's collation using receiver. By this time, even if receiver is a
parameter, we have set correct collation for receiver and hence leftOperand can simply rely on receiver for correct
collation IF leftOperand is a parameter.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@553727 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java",
"hunks": [
{
"added": [
"\t * The variable receiver is the string that needs to be trimmed.",
"\t * The variable leftOperand is the character that needs to be trimmed from",
"\t * ... |
derby-DERBY-2777-de4d4c54 | DERBY-2777
Currently, the parameters in LOCATE clause always pickup their collation from the compilation schema. That logic is not
complete. I am fixing that logic here along with addition of some tests.
For the sake of explanation, let me use the following syntax for LOCATE clause
LOCATE (receiver, leftOperand)
With the fix in this patch, if receiver is a parameter, it will set it's collation using following logic
1)check if leftOperand is not a parameter. If yes, then receiver will pick up collation from leftOperand. If not, goto step 2
2)receiver picks up the collation of the compilation schema because everything in the LOCATE clause is ?
Next, if leftOperand is a parameter, it will set it's collation using receiver. By this time, even if receiver is a
parameter, we have set correct collation for receiver and hence leftOperand can simply rely on receiver for correct
collation IF leftOperand is a parameter.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@553784 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java",
"hunks": [
{
"added": [
"\t * The variable receiver is the string which will searched",
"\t * The variable leftOperand is the search character that will looked in the",
"\t * r... |
derby-DERBY-2777-f1224882 | DERBY-2777
Currently, the parameters in LIKE clause always pickup their collation from the compilation schema. That logic is not
complete. I am fixing that logic here along with addition of some tests.
For the sake of explanation, let me use the following syntax for LIKE clause
receiver LIKE leftOperand ESCAPE rightOperand
With the fix in this patch, if receiver is a parameter, it will set it's collation using following logic
1)check if leftOperand is not a parameter. If yes, then receiver will pick up collation from leftOperand. If not, goto step 2
2)check if rightOperand is not a parameter. If yes, then receiver will pick up collation from rightOperand. If not, goto step 3
3)receiver picks up the collation of the compilation schema because everything in the LIKE clause is ?
Next, if leftOperand is a parameter, it will set it's collation using receiver. By this time, even if receiver is a
parameter, we have set correct collation for receiver and hence leftOperand can simply rely on receiver for correct
collation IF leftOperand is a parameter.
Next, if rightOperand is a parameter, it will set it's collation using receiver. By this time, even if receiver is a
parameter, we have set correct collation for receiver and hence rightOperand can simply rely on receiver for correct
collation IF rightOperand is a parameter.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@553557 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/engine/org/apache/derby/impl/sql/compile/LikeEscapeOperatorNode.java",
"hunks": [
{
"added": [
" //check if this parameter can pick up it's collation from pattern",
" //or escape clauses in that order. If not, then it will take it's",
... |
derby-DERBY-2795-0ab3f6e9 | DERBY-2795 Unable to bring up server with SSL peer authentication enabled. Code fix.
Checking sslMode values both on server and client.
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@546217 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/client/org/apache/derby/jdbc/ClientBaseDataSource.java",
"hunks": [
{
"added": [
" public static final int getSSLModeFromString(String s) ",
" throws SqlException",
" {",
" "
],
"header": "@@ -177,7 +17... |
derby-DERBY-2796-2a0eb8d8 | DERBY-2796 Obscure error messages when using SSL in various combinations
git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@548301 13f79535-47bb-0310-9956-ffa450edef68
| [
{
"file": "java/drda/org/apache/derby/impl/drda/NetworkServerControlImpl.java",
"hunks": [
{
"added": [
"import javax.net.ssl.SSLSocket;"
],
"header": "@@ -36,6 +36,7 @@ import java.net.Socket;",
"removed": []
},
{
"added": [
"\t\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.