[jira] [Resolved] (DERBY-5905) Derby html documentation doesn't render properly and prints garbage on Internet Explorer

2012-09-27 Thread Knut Anders Hatlen (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Knut Anders Hatlen resolved DERBY-5905.
---

   Resolution: Fixed
Fix Version/s: 10.10.0.0
   10.9.1.1
   10.8.2.3
 Assignee: Knut Anders Hatlen

Yes, I think the work on this issue is done. Marking as fixed.

 Derby html documentation doesn't render properly and prints garbage on 
 Internet Explorer
 

 Key: DERBY-5905
 URL: https://issues.apache.org/jira/browse/DERBY-5905
 Project: Derby
  Issue Type: Bug
  Components: Documentation
Affects Versions: 10.8.2.2, 10.9.1.0, 10.10.0.0
Reporter: Kathey Marsden
Assignee: Knut Anders Hatlen
 Fix For: 10.8.2.3, 10.9.1.1, 10.10.0.0

 Attachments: ASF.LICENSE.NOT.GRANTED--screenshot-1.jpg, 
 d5905-1a-move-comments.diff, d5905-2a-lang-attribute.diff


 There have been reports that DERBY html documentation does not render on 
 Internet Explorer 8 and 9.
 Kristian reports on IE8
 Just tried with IE8, and with the Getting Started manual I get this when I 
 view the source:
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META content=text/html; charset=utf-8 http-equiv=Content-Type/HEAD
 BODY/BODY/HTML
 snipped garbage as to not put it in jira
 Not sure how that last line will turn out in your email clients, but it is 
 indeed garbage and you can see that the body-tag is empty. Nothing is 
 rendered in the browser. We are using frames though - that's not exactly 
 state-of-the-art... We are also using the wrong DOCTYPE. I'm suspecting that 
 the HTML is invalid too, but haven't checked. 
 On IE9 I had heard that the reference HTML manual prints garbage.
 http://db.apache.org/derby/manuals/index.html#latest

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-672) Re-enable user defined aggregates

2012-09-27 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas updated DERBY-672:


Attachment: derby-672-09-ab-udtAggregates.diff

Attaching derby-672-09-ab-udtAggregates.diff. This patch makes it possible to 
create aggregates on user defined types. I am running regression tests now.

Touches the following files:

--

M   java/engine/org/apache/derby/impl/sql/compile/QueryTreeNode.java
M   java/engine/org/apache/derby/impl/sql/compile/CreateAliasNode.java

The input and return types of the aggregate needed to be bound in order for 
CREATE DERBY AGGREGATE to succeed on user defined types. 

--

M   
java/testing/org/apache/derbyTesting/functionTests/tests/lang/UserDefinedAggregatesTest.java
A   
java/testing/org/apache/derbyTesting/functionTests/tests/lang/FullName.java
M   
java/testing/org/apache/derbyTesting/functionTests/tests/lang/GenericMode.java
M   java/testing/org/apache/derbyTesting/functionTests/tests/lang/build.xml

Additional test case for creating aggregates on a user-defined type.


 Re-enable user defined aggregates
 -

 Key: DERBY-672
 URL: https://issues.apache.org/jira/browse/DERBY-672
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Rick Hillegas
Assignee: Rick Hillegas
 Attachments: derby-672-01-aa-ddl.diff, 
 derby-672-02-ac-nonDistinct.diff, derby-672-03-aa-distinct.diff, 
 derby-672-03-ab-distinct.diff, derby-672-04-aa-fixJSR169test.diff, 
 derby-672-05-aa-java7testOrderProblem.diff, derby-672-06-aa-grantRevoke.diff, 
 derby-672-07-aa-fixJSR169again.diff, derby-672-08-aa-fixJSR169yetAgain.diff, 
 derby-672-09-ab-udtAggregates.diff, UserDefinedAggregates.html, 
 UserDefinedAggregates.html


 Nicolas Dufour in an email thread titled functions and list started on 
 November 2, 2005 requests the ability to create user defined aggregates.
 This functionality used to be in Cloudscape. It was disabled presumably 
 because it was considered non-standard. However, most of the machinery needed 
 for this feature is still in the code. We should re-enable user defined 
 aggregates after we agree on acceptable syntax.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-672) Re-enable user defined aggregates

2012-09-27 Thread Knut Anders Hatlen (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464696#comment-13464696
 ] 

Knut Anders Hatlen commented on DERBY-672:
--

Thanks for eliminating the duplicated code. :) The 09-ab patch looks good to 
me. +1.

 Re-enable user defined aggregates
 -

 Key: DERBY-672
 URL: https://issues.apache.org/jira/browse/DERBY-672
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Rick Hillegas
Assignee: Rick Hillegas
 Attachments: derby-672-01-aa-ddl.diff, 
 derby-672-02-ac-nonDistinct.diff, derby-672-03-aa-distinct.diff, 
 derby-672-03-ab-distinct.diff, derby-672-04-aa-fixJSR169test.diff, 
 derby-672-05-aa-java7testOrderProblem.diff, derby-672-06-aa-grantRevoke.diff, 
 derby-672-07-aa-fixJSR169again.diff, derby-672-08-aa-fixJSR169yetAgain.diff, 
 derby-672-09-ab-udtAggregates.diff, UserDefinedAggregates.html, 
 UserDefinedAggregates.html


 Nicolas Dufour in an email thread titled functions and list started on 
 November 2, 2005 requests the ability to create user defined aggregates.
 This functionality used to be in Cloudscape. It was disabled presumably 
 because it was considered non-standard. However, most of the machinery needed 
 for this feature is still in the code. We should re-enable user defined 
 aggregates after we agree on acceptable syntax.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-2130) Optimizer performance slowdown from 10.1 to 10.2

2012-09-27 Thread Bryan Pendleton (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464757#comment-13464757
 ] 

Bryan Pendleton commented on DERBY-2130:


I don't consider the patch high risk. I think it is ready to pursue. I think 
it's reasonable
to mark this as a newcomer issue. I would be willing to help work with anybody 
who
has the time/motivation to push this forward.


 Optimizer performance slowdown from 10.1 to 10.2
 

 Key: DERBY-2130
 URL: https://issues.apache.org/jira/browse/DERBY-2130
 Project: Derby
  Issue Type: Bug
  Components: SQL
Affects Versions: 10.1.3.1, 10.2.1.6, 10.3.1.4
Reporter: Bryan Pendleton
  Labels: derby_triage10_5_2
 Attachments: jumpReset.patch, plan10_1_2_1.txt, plan10_2.txt, 
 plans.diff, repro.sql


 Attached is 'repro.sql', an IJ script which demonstrates what I
 believe to be a serious performance issue in the Optimizer.
 I have run this script in a number of configurations:
  - 10.1.2.1: the script runs successfully. The 'prepare' statement
takes about 90 seconds, on a fairly powerful Windows machine
  - 10.1.3.1: the script produces a NPE. I believe this is DERBY-1777
  - 10.2.1.8/trunk: the script runs successfully. The 'prepare' statement
often takes about 220 seconds, on the same Windows machine
Intermittently, on 10.2 and on the trunk, the prepare statement takes
15+ minutes. I cannot reliably reproduce this; I run the same script
several times in a row and I cannot predict whether it will take 220
seconds or whether it will take 15+ minutes.
 I am quite motivated to work on this problem, as this is blocking me from
 using Derby for a project that I'm quite keen on, but I need some
 suggestions and ideas about how to attack it. From my perspective
 there are 3 primary topics:
 1) Why did optimizer performance for this query degrade so significantly
 from 10.1.2.1 to 10.2? The optimizer seems to be at least 2.5 times slower,
 for this particular query at least, in 10.2. Sometimes it is 10x slower.
 2) What is the source of the non-determinism? Why does the optimizer
 often take 4 minutes to optimize this query on the trunk, but sometimes
 take 15+ minutes? I don't believe that I'm changing anything from
 run to run.
 3) Can we improve the optimizer performance even beyond what it was
 for 10.1.2? I realize that this is an ugly query, but I was hoping to
 see an optimization time of 5-10 seconds, not 90 seconds (and certainly
 not 220 seconds).
 I have attempted to start answering some of these questions, with
 limited success. Here is some of what I think I've discovered so far:
  - the optimizer changes in 10.2 seem to have given the optimizer many
more choices of possible query plans to consider. I think this means
that, if the optimizer does not time out, it will spend substantially
more time optimizing because there are more choices to evaluate. Does
this by itself mean that the optimizer will take 2.5 times longer in
10.2 than it did in 10.1?
  - something about this query seems to make the costing mechanism go
haywire, and produce extreme costs. While stepping through the
optimization of this query in the debugger I have seen it compute
costs like 1e63 and 1e200. This might be very closely related to
DERBY-1905, although I don't think I'm doing any subqueries here.
But maybe I'm misunderstanding the term subquery in DERBY-1905.
At any rate, due to the enormous estimated costs, timeout does not
occur.
  - the WHERE clause in this query is converted during compilation to 
an equivalent IN clause, I believe, which then causes me to run into
a number of the problems described in DERBY-47 and DERBY-713.
Specifically, rather than constructing a plan which involves 4
index probes for the 4 WHERE clause values, the optimizer decides
that an index scan must be performed and that it will have to process
the entire index (because the query uses parameter markers, not
literal values). So perhaps solving DERBY-47 would help me
  - the optimizer in fact comes up with a decent query plan quite quickly.
I have experimented with placing a hard limit into the optimizer
timeout code, so that I can force optimization to stop after an
arbitrary fixed period of time. Then I have been able to set that
value to as low as 1 second, and the optimizer has produced plans
that then execute in a few milliseconds. Of course, I have only tried
this with a trivial amount of data in my database, so it's possible
that the plan produced by the optimizer after just a second of
optimizing is in fact poor, and I'm just not noticing it because my
data sizes are so small.
 At this point, what would be 

[jira] [Commented] (DERBY-672) Re-enable user defined aggregates

2012-09-27 Thread Rick Hillegas (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464787#comment-13464787
 ] 

Rick Hillegas commented on DERBY-672:
-

Thanks for the quick review, Knut. Tests passed cleanly for me. Committed 
derby-672-09-ab-udtAggregates.diff at subversion revision 1391034.

 Re-enable user defined aggregates
 -

 Key: DERBY-672
 URL: https://issues.apache.org/jira/browse/DERBY-672
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Rick Hillegas
Assignee: Rick Hillegas
 Attachments: derby-672-01-aa-ddl.diff, 
 derby-672-02-ac-nonDistinct.diff, derby-672-03-aa-distinct.diff, 
 derby-672-03-ab-distinct.diff, derby-672-04-aa-fixJSR169test.diff, 
 derby-672-05-aa-java7testOrderProblem.diff, derby-672-06-aa-grantRevoke.diff, 
 derby-672-07-aa-fixJSR169again.diff, derby-672-08-aa-fixJSR169yetAgain.diff, 
 derby-672-09-ab-udtAggregates.diff, UserDefinedAggregates.html, 
 UserDefinedAggregates.html


 Nicolas Dufour in an email thread titled functions and list started on 
 November 2, 2005 requests the ability to create user defined aggregates.
 This functionality used to be in Cloudscape. It was disabled presumably 
 because it was considered non-standard. However, most of the machinery needed 
 for this feature is still in the code. We should re-enable user defined 
 aggregates after we agree on acceptable syntax.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Closed] (DERBY-3720) Add documentation for the connection URL property encryptionKeyLength

2012-09-27 Thread Kim Haase (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-3720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kim Haase closed DERBY-3720.


Resolution: Duplicate

This issue was duplicated by DERBY-4229, which has now been resolved.

 Add documentation for the connection URL property encryptionKeyLength
 -

 Key: DERBY-3720
 URL: https://issues.apache.org/jira/browse/DERBY-3720
 Project: Derby
  Issue Type: Improvement
  Components: Documentation
Affects Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 
 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3
Reporter: Dag H. Wanvik
Priority: Minor

 This property seems to be active, but is not documented. See also DERBY-3711.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Assigned] (DERBY-1721) DOCS - Retitle topics with duplicate titles in Dev Guide re: Encryption

2012-09-27 Thread Kim Haase (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kim Haase reassigned DERBY-1721:


Assignee: Kim Haase

 DOCS - Retitle topics with duplicate titles in Dev Guide re: Encryption
 ---

 Key: DERBY-1721
 URL: https://issues.apache.org/jira/browse/DERBY-1721
 Project: Derby
  Issue Type: Improvement
  Components: Documentation
Affects Versions: 10.2.1.6, 10.2.2.0, 10.3.1.4
Reporter: Laura Stewart
Assignee: Kim Haase
Priority: Minor

 In the Developers Guide. there are 2 sections that contain information about 
 encryption. 
 In some cases there are topics with different content but with the same 
 titles. 
 There should not be duplicate titles in the Derby documentation.
 There is this section: 
 JDBC applications and Derby basics --Derby embedded basics --Working with 
 the database connection URL attributes 
 that has these topic titles: 
 --Using the databaseName attribute 
 --Shutting down Derby or an individual database 
 --Creating and accessing a database 
 --Providing a user name and password 
 --Encrypting a database when you create it 
 --Booting an encrypted database 
 --Specifying attributes in a properties object 
 Then there is this section: 
 Derby and Security --Encrypting databases on disk --Working with encryption 
 that has these topic titles: 
 --Encrypting databases on creation 
 --Creating the boot password 
--Specifying an alternate encryption provider 
--Specifying an alternate encryption algorithm 
 --Booting an encrypted database 
 --Changing the boot password 
 Someone needs to look at the content of these files, rework the information 
 and necessary, create the related links, and then retitle the topics to avoid 
 duplicate titles.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-1721) DOCS - Retitle topics with duplicate titles in Dev Guide re: Encryption

2012-09-27 Thread Kim Haase (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464811#comment-13464811
 ] 

Kim Haase commented on DERBY-1721:
--

The section Working with the database connection URL attributes should point 
to Encrypting databases on disk for information on database encryption, since 
the latter section is the one cited by the Reference Manual topics on 
encryption.

The information in Encrypting a database when you create it and Creating an 
encrypted database with an external key should be added to Encrypting 
databases on creation. (The term external key is not used in the Reference 
Manual. Is it meaningful?)

Any duplicate information in the first Booting an encrypted database should 
be added to the second one.

 DOCS - Retitle topics with duplicate titles in Dev Guide re: Encryption
 ---

 Key: DERBY-1721
 URL: https://issues.apache.org/jira/browse/DERBY-1721
 Project: Derby
  Issue Type: Improvement
  Components: Documentation
Affects Versions: 10.2.1.6, 10.2.2.0, 10.3.1.4
Reporter: Laura Stewart
Assignee: Kim Haase
Priority: Minor

 In the Developers Guide. there are 2 sections that contain information about 
 encryption. 
 In some cases there are topics with different content but with the same 
 titles. 
 There should not be duplicate titles in the Derby documentation.
 There is this section: 
 JDBC applications and Derby basics --Derby embedded basics --Working with 
 the database connection URL attributes 
 that has these topic titles: 
 --Using the databaseName attribute 
 --Shutting down Derby or an individual database 
 --Creating and accessing a database 
 --Providing a user name and password 
 --Encrypting a database when you create it 
 --Booting an encrypted database 
 --Specifying attributes in a properties object 
 Then there is this section: 
 Derby and Security --Encrypting databases on disk --Working with encryption 
 that has these topic titles: 
 --Encrypting databases on creation 
 --Creating the boot password 
--Specifying an alternate encryption provider 
--Specifying an alternate encryption algorithm 
 --Booting an encrypted database 
 --Changing the boot password 
 Someone needs to look at the content of these files, rework the information 
 and necessary, create the related links, and then retitle the topics to avoid 
 duplicate titles.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


Regression Test Report - Daily 1390582 - Sun DBTG

2012-09-27 Thread Ole . Solberg
[Auto-generated mail]

*Daily* 1390582/2012-09-26 18:00:07 MEST

Failed  TestsOK  Skip  Duration   Suite
---
*Jvm: 1.7*
 lin
01747917479 0   .% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 0   .% derbyall
022 0   .% compatibility
022 0   .% demoSuite
 sol
UNKNOWNUNKNOWNUNKNOWN UNKNOWN   .% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
1164163 0   .% derbyall
F:1,E:021 0   .% compatibility
022 0   .% demoSuite
 sol32
01747917479 0   .% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 0   .% derbyall
022 0   .% compatibility
022 0   .% demoSuite
 vista-64
01745117451 0   .% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 0   .% derbyall
   NA NA NANA   compatibility
022 0   .% demoSuite
  Details in  
http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/testing/Limited/testSummary-1390582.html
 
  Attempted failure analysis in
  
http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.7/FailReports/1390582_bySig.html
 

*Jvm: 1.6*
 lin
01735917359 0   1718.84% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 038.00% derbyall
022 0   114.59% compatibility
022 0   .% demoSuite
 sles
01735917359 0   1084.97% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 035.48% derbyall
022 0   100.65% compatibility
022 0   .% demoSuite
 sol
01734717347 0   1220.12% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 029.50% derbyall
022 072.68% compatibility
022 0   .% demoSuite
 sol32
01734717347 089.26% suitesAll
01515 046.15% jdbcapiAutoLoad
01414 058.33% JDBCDriversAll
01515 053.84% JDBCDriversClient
01414 0 8.33% JDBCDriversEmbedded
0164164 0   1114.15% derbyall
022 0   15150.00% compatibility
022 0   750.00% demoSuite
 solN+1
01734717347 0   157.92% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 031.12% derbyall
022 064.55% compatibility
022 0   .% demoSuite
 sparc
01734717347 0   623.33% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 023.02% derbyall
022 075.12% compatibility
022 0   .% demoSuite
 vista
01732917329 0   206.36% suitesAll
01515 0   .% jdbcapiAutoLoad
01414 0   .% JDBCDriversAll
01515 0   .% JDBCDriversClient
01414 0   .% JDBCDriversEmbedded
0164164 044.31% derbyall
   NA NA NANA   compatibility
022 0   .% demoSuite
 vista-64
01732917329 0   301.89% suitesAll
01515 0   .% jdbcapiAutoLoad
01414

[jira] [Updated] (DERBY-5411) Client that does not have Security manager permission to connect gets ERROR 08006: Insufficient data while reading from the network Message should be clearer

2012-09-27 Thread Kathey Marsden (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kathey Marsden updated DERBY-5411:
--

Description: 
I was doing a little remote testing for the release candidate and noticed if a 
machine does not have permission to connect, then the client shows the 
following exception:
ij connect  'jdbc:derby://x.xx.xxx.xx:1527/wombat';
ERROR 08006: Insufficient data while reading from the network - expected a 
minimum of 6 bytes and received only 0 bytes.  The connection has been term
inated.
java.sql.SQLNonTransientConnectionException: Insufficient data while reading 
from the network - expected a minimum of 6 bytes and received only 0 byte
s.  The connection has been terminated.
at 
org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.client.am.SqlException.getSQLException(Unknown 
Source)
at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:322)
at java.sql.DriverManager.getConnection(DriverManager.java:297)
at org.apache.derby.impl.tools.ij.ij.dynamicConnection(Unknown Source)
at org.apache.derby.impl.tools.ij.ij.ConnectStatement(Unknown Source)
at org.apache.derby.impl.tools.ij.ij.ijStatement(Unknown Source)
at org.apache.derby.impl.tools.ij.utilMain.runScriptGuts(Unknown Source)
at org.apache.derby.impl.tools.ij.utilMain.go(Unknown Source)
at org.apache.derby.impl.tools.ij.Main.go(Unknown Source)
at org.apache.derby.impl.tools.ij.Main.mainCore(Unknown Source)
at org.apache.derby.impl.tools.ij.Main.main(Unknown Source)
at org.apache.derby.tools.ij.main(Unknown Source)
Caused by: org.apache.derby.client.am.DisconnectException: Insufficient data 
while reading from the network - expected a minimum of 6 bytes and receiv
ed only 0 bytes.  The connection has been terminated.
at org.apache.derby.client.net.Reply.fill(Unknown Source)
at org.apache.derby.client.net.Reply.ensureALayerDataInBuffer(Unknown 
Source)
at org.apache.derby.client.net.Reply.readDssHeader(Unknown Source)
at org.apache.derby.client.net.Reply.startSameIdChainParse(Unknown 
Source)
at 
org.apache.derby.client.net.NetConnectionReply.readExchangeServerAttributes(Unknown
 Source)
at 
org.apache.derby.client.net.NetConnection.readServerAttributesAndKeyExchange(Unknown
 Source)
at 
org.apache.derby.client.net.NetConnection.flowServerAttributesAndKeyExchange(Unknown
 Source)
at 
org.apache.derby.client.net.NetConnection.flowUSRIDONLconnect(Unknown Source)
at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
at org.apache.derby.client.net.NetConnection.init(Unknown Source)
at org.apache.derby.client.net.NetConnection40.init(Unknown Source)
at 
org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40.newNetConnection(Unknown
 Source)
... 12 more

It would be good to have a clearer error message:

To Reproduce, use the script and policy file below changing the url for 
derby.codejars to the correct path for  your enviroment also in the policy file 
my.policy exchange x.x.x.x with the permitted host and y.y.y.y with the 
disallowed host.  Then try to connect from the disllowed host with connect  
'jdbc:derby://x.x.x.x:1527/wombat';

Script startServer.sh:
java  -Djava.security.manager 
-Dderby.codejars=file:c:/cygwin/home/kmarsden/projects/10.8.2testing/db-derby-10.8.2.1-lib/lib/
 -Djava.security.policy=my.policy org.apache.derby.drda.NetworkServerControl 
start -h 0.0.0.0

Policy File my.policy (change x.x.x.x and y.y.y.y) to the allowed and 
disallowed host respectively. )Since the y.y.y.y line is commented it is not 
really relevant except for testing that remote connections work properly)


grant codeBase ${derby.codejars}derby.jar
{
//
// These permissions are needed for everyday, embedded Derby usage.
//
  permission java.lang.RuntimePermission createClassLoader;
  permission java.util.PropertyPermission derby.*, read;
  permission java.util.PropertyPermission user.dir, read;
  permission java.util.PropertyPermission derby.storage.jvmInstanceId, 
  write; 
  permission java.io.FilePermission ${user.dir}${/}-, read;
  permission java.io.FilePermission ${derby.system.home},read;
  permission java.io.FilePermission ${derby.system.home}${/}-, 
read,write,delete;

//
// This permission lets a DBA reload the policy file while the server
// is still running. The policy file is reloaded by invoking the
// SYSCS_UTIL.SYSCS_RELOAD_SECURITY_POLICY() system procedure.
//
  permission java.security.SecurityPermission getPolicy;

//
// This permission lets you backup and restore databases
// to and from arbitrary locations in your file system.
//
// This permission also lets you import/export data to 

[jira] [Assigned] (DERBY-5891) The French translations of a couple engine messages need to have their single-quotes escaped.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor reassigned DERBY-5891:
--

Assignee: Rick Hillegas

 The French translations of a couple engine messages need to have their 
 single-quotes escaped.
 -

 Key: DERBY-5891
 URL: https://issues.apache.org/jira/browse/DERBY-5891
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
Assignee: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby-5891-01-aa-fixSingleQuotes.diff


 The messages are:
 42XAC=La valeur d'''INCREMENT BY'' ne peut pas \u00EAtre z\u00E9ro.
 XRE41=Op\u00E9ration de r\u00E9plication ''failover'' ou ''stopSlave'' 
 refus\u00E9e sur la base de donn\u00E9es esclave car la connexion avec le 
 ma\u00EEtre est active. Emettez plut\u00F4t l''op\u00E9ration ''failover'' ou 
 '''stopMaster'' sur la base de donn\u00E9es ma\u00EEtre.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5891) The French translations of a couple engine messages need to have their single-quotes escaped.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5891:
---

Labels: derby_triage10_10  (was: )

 The French translations of a couple engine messages need to have their 
 single-quotes escaped.
 -

 Key: DERBY-5891
 URL: https://issues.apache.org/jira/browse/DERBY-5891
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
Assignee: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby-5891-01-aa-fixSingleQuotes.diff


 The messages are:
 42XAC=La valeur d'''INCREMENT BY'' ne peut pas \u00EAtre z\u00E9ro.
 XRE41=Op\u00E9ration de r\u00E9plication ''failover'' ou ''stopSlave'' 
 refus\u00E9e sur la base de donn\u00E9es esclave car la connexion avec le 
 ma\u00EEtre est active. Emettez plut\u00F4t l''op\u00E9ration ''failover'' ou 
 '''stopMaster'' sur la base de donn\u00E9es ma\u00EEtre.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-5891) The French translations of a couple engine messages need to have their single-quotes escaped.

2012-09-27 Thread Mamta A. Satoor (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464923#comment-13464923
 ] 

Mamta A. Satoor commented on DERBY-5891:


Hi Rick, can this jira be closed? Seems like you made a commit fixing the 
messages. Thanks

 The French translations of a couple engine messages need to have their 
 single-quotes escaped.
 -

 Key: DERBY-5891
 URL: https://issues.apache.org/jira/browse/DERBY-5891
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby-5891-01-aa-fixSingleQuotes.diff


 The messages are:
 42XAC=La valeur d'''INCREMENT BY'' ne peut pas \u00EAtre z\u00E9ro.
 XRE41=Op\u00E9ration de r\u00E9plication ''failover'' ou ''stopSlave'' 
 refus\u00E9e sur la base de donn\u00E9es esclave car la connexion avec le 
 ma\u00EEtre est active. Emettez plut\u00F4t l''op\u00E9ration ''failover'' ou 
 '''stopMaster'' sur la base de donn\u00E9es ma\u00EEtre.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DERBY-5891) The French translations of a couple engine messages need to have their single-quotes escaped.

2012-09-27 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas resolved DERBY-5891.
--

Resolution: Fixed

Hi Mamta,

Thanks for noticing this. Yes, I will resolve and close this bug. Thanks.

 The French translations of a couple engine messages need to have their 
 single-quotes escaped.
 -

 Key: DERBY-5891
 URL: https://issues.apache.org/jira/browse/DERBY-5891
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
Assignee: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby-5891-01-aa-fixSingleQuotes.diff


 The messages are:
 42XAC=La valeur d'''INCREMENT BY'' ne peut pas \u00EAtre z\u00E9ro.
 XRE41=Op\u00E9ration de r\u00E9plication ''failover'' ou ''stopSlave'' 
 refus\u00E9e sur la base de donn\u00E9es esclave car la connexion avec le 
 ma\u00EEtre est active. Emettez plut\u00F4t l''op\u00E9ration ''failover'' ou 
 '''stopMaster'' sur la base de donn\u00E9es ma\u00EEtre.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Closed] (DERBY-5891) The French translations of a couple engine messages need to have their single-quotes escaped.

2012-09-27 Thread Rick Hillegas (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rick Hillegas closed DERBY-5891.



 The French translations of a couple engine messages need to have their 
 single-quotes escaped.
 -

 Key: DERBY-5891
 URL: https://issues.apache.org/jira/browse/DERBY-5891
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
Assignee: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby-5891-01-aa-fixSingleQuotes.diff


 The messages are:
 42XAC=La valeur d'''INCREMENT BY'' ne peut pas \u00EAtre z\u00E9ro.
 XRE41=Op\u00E9ration de r\u00E9plication ''failover'' ou ''stopSlave'' 
 refus\u00E9e sur la base de donn\u00E9es esclave car la connexion avec le 
 ma\u00EEtre est active. Emettez plut\u00F4t l''op\u00E9ration ''failover'' ou 
 '''stopMaster'' sur la base de donn\u00E9es ma\u00EEtre.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5594) SecureServerTest java.io.IOException: Interrupted system call

2012-09-27 Thread Myrna van Lunteren (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren updated DERBY-5594:
--

Urgency: Urgent
 Labels: derby_triage10_10  (was: )

I'm marking this as urgent, because we see it fairly regularly on one of our 
machines.

It's quite likely this occurs when the machine is bogged down.


 SecureServerTest java.io.IOException: Interrupted system call 
 --

 Key: DERBY-5594
 URL: https://issues.apache.org/jira/browse/DERBY-5594
 Project: Derby
  Issue Type: Bug
  Components: Test
Affects Versions: 10.8.2.3
 Environment: linix vmware IBM 1.7
 java.runtime.version: pxi3270-20110827_01
 java.fullversion: JRE 1.7.0 IBM J9 2.6 Linux x86-32 20110810_88604 (JIT 
 enabled, AOT enabled)
 J9VM - R26_Java726_GA_20110810_1208_B88592
 JIT  - r11_20110810_20466
 GC   - R26_Java726_GA_20110810_1208_B88592
 J9CL - 20110810_88604
Reporter: Kathey Marsden
  Labels: derby_triage10_10

 On 10.8.2.3 - (1236960) linux vmware, I saw the following failure.
 1) SecureServerTest( Opened = false, Authenticated= true, 
 CustomDerbyProperties= null, WildCardHost= 0.00.000.0 
 )junit.framework.AssertionFailedError: Timed out waiting for network server 
 to start:Spawned SpawnedNetworkServer exitCode=143
 STDERR:
 java.io.IOException: Interrupted system call
   at java.io.FileInputStream.read(FileInputStream.java:255)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
   at java.io.FilterInputStream.read(FilterInputStream.java:118)
   at 
 org.apache.derbyTesting.junit.SpawnedProcess$2.run(SpawnedProcess.java:246)
   at java.lang.Thread.run(Thread.java:769)
 STDOUT:
 Sat Jan 28 06:30:04 PST 2012 : Security manager installed using the Basic 
 server security policy.
 java.io.IOException: Interrupted system call
   at java.io.FileInputStream.read(FileInputStream.java:255)
   at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
   at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
   at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
   at java.io.FilterInputStream.read(FilterInputStream.java:118)
   at 
 org.apache.derbyTesting.junit.SpawnedProcess$2.run(SpawnedProcess.java:246)
   at java.lang.Thread.run(Thread.java:769)
   at 
 org.apache.derbyTesting.junit.NetworkServerTestSetup.setUp(NetworkServerTestSetup.java:210)
   at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
   at junit.extensions.TestSetup.run(TestSetup.java:25)
   at 
 org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
   at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
   at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
   at junit.extensions.TestSetup.run(TestSetup.java:25)
   at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
   at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
   at junit.extensions.TestSetup.run(TestSetup.java:25)
   at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
   at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
   at junit.extensions.TestSetup.run(TestSetup.java:25)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-4229) encryptionKeyLength connection attribute should be documented

2012-09-27 Thread Kim Haase (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-4229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464973#comment-13464973
 ] 

Kim Haase commented on DERBY-4229:
--

Hm. If I specify encryptionKey and an invalid encryptionKeyLength without 
specifying an encryptionAlgorithm, there's no error:

 jdench 49 =java -jar $DERBY_HOME/jars/insane/derbyrun.jar ij
ij version 10.10
ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;encryptionKey=6162636465666768;encryptionKeyLength=5';
ij 

Derby seems to ignore the length if the key is specified.

The following URLs also succeed with no error -- specifying the default 
algorithm, and either the default key length or an incorrect key length:

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;encryptionKey=6162636465666768;encryptionAlgorithm=DES/CBC/NoPadding';

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;encryptionKey=6162636465666768;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKeyLength=128';

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;encryptionKey=6162636465666768;encryptionAlgorithm=DES/CBC/NoPadding;encryptionKeyLength=5';

On the other hand, if I specify an encryptionKey of the default length with a 
non-default encryptionAlgorithm, I get an error:

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;encryptionKey=6162636465666768;encryptionAlgorithm=AES/CBC/NoPadding';
ERROR XJ041: Failed to create database 'encDB', see the next exception for 
details.
ERROR XBM01: Startup failed due to an exception. See next exception for 
details. 
ERROR XBCX0: Exception from Cryptography provider. See next exception for 
details.
ERROR XJ001: Java exception: 'Invalid key for AES: 
java.security.InvalidKeyException'.
ERROR XJ001: Java exception: 'Key length must be between 128 and 256 bits: 
java.security.InvalidAlgorithmParameterException'.
ij 

I think the key length is 128, so the error message is mysterious. I get the 
same error if I add encryptionKeyLength=128 to the URL. I haven't tried with 
a non-default key length because that requires a different policy file, 
according to Specifying an alternate encryption algorithm in the Developer's 
Guide.

 encryptionKeyLength connection attribute should be documented
 -

 Key: DERBY-4229
 URL: https://issues.apache.org/jira/browse/DERBY-4229
 Project: Derby
  Issue Type: Bug
  Components: Documentation
Affects Versions: 10.5.1.1
Reporter: Kathey Marsden
Assignee: Kim Haase
 Fix For: 10.5.2.0, 10.5.3.1, 10.6.2.2, 10.7.1.4, 10.8.2.3, 
 10.9.1.1, 10.10.0.0

 Attachments: cdevcsecure67151.html, DERBY-4229-2.diff, 
 DERBY-4229-2.stat, DERBY-4229-3.diff, DERBY-4229.diff, 
 rrefattribencryptkeylength.html, rrefattribencryptkeylength.html


 The developer guide says:
 The length of the encryption key depends on the algorithm used:
 AES (128, 192, and 256 bits) 
 DES (the default) (56 bits) 
 DESede (168 bits) 
 All other algorithms (128 bits) 
 Note: The boot password should have at least as many characters as number of 
 bytes in the encryption key (56 bits=8 bytes, 168 bits=24 bytes, 128 bits=16 
 bytes). The minimum number of characters for the boot password allowed by 
 Derby is eight.
 For AES, however,  it does not tell how to change the default key length  of 
 128.  This can be changed with the encryptionKeyLength connection attribute.  
 The documentation should also specify that special policy files for the JRE 
 may be necessary to accomodate the longer length.
 Also note that there is an outstanding issue DERBY-3710 regarding length of 
 192 for AES.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-4229) encryptionKeyLength connection attribute should be documented

2012-09-27 Thread Kim Haase (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-4229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13464988#comment-13464988
 ] 

Kim Haase commented on DERBY-4229:
--

On the other hand, if I use bootPassword with an invalid encryptionKeyLength, 
other interesting things happen.

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;bootPassword=Thursday;encryptionKeyLength=5';
ERROR XJ041: Failed to create database 'encDB', see the next exception for 
details.
ERROR XBM01: Startup failed due to an exception. See next exception for 
details. 
ERROR XJ001: Java exception: ': java.security.InvalidParameterException'.
ERROR XJ001: Java exception: 'DES key length must be 56 bits: 
java.security.InvalidAlgorithmParameterException'.

This is interesting, because we say the default key length is 128. If I specify 
56, I get no error. But if I specify 128, I get an error:

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;bootPassword=Thursday;encryptionKeyLength=128';
ERROR XJ041: Failed to create database 'encDB', see the next exception for 
details.
ERROR XBM01: Startup failed due to an exception. See next exception for 
details. 
ERROR XJ001: Java exception: ': java.security.InvalidParameterException'.
ERROR XJ001: Java exception: 'DES key length must be 56 bits: 
java.security.InvalidAlgorithmParameterException'.

Apparently the default is 128 for AES, not for DES. The following command 
succeeds:

ij connect 
'jdbc:derby:encDB;create=true;dataEncryption=true;bootPassword=Thursday;encryptionAlgorithm=AES/CBC/NoPadding;encryptionKeyLength=128';

So why did a 128-bit encryptionKey argument succeed? 


 encryptionKeyLength connection attribute should be documented
 -

 Key: DERBY-4229
 URL: https://issues.apache.org/jira/browse/DERBY-4229
 Project: Derby
  Issue Type: Bug
  Components: Documentation
Affects Versions: 10.5.1.1
Reporter: Kathey Marsden
Assignee: Kim Haase
 Fix For: 10.5.2.0, 10.5.3.1, 10.6.2.2, 10.7.1.4, 10.8.2.3, 
 10.9.1.1, 10.10.0.0

 Attachments: cdevcsecure67151.html, DERBY-4229-2.diff, 
 DERBY-4229-2.stat, DERBY-4229-3.diff, DERBY-4229.diff, 
 rrefattribencryptkeylength.html, rrefattribencryptkeylength.html


 The developer guide says:
 The length of the encryption key depends on the algorithm used:
 AES (128, 192, and 256 bits) 
 DES (the default) (56 bits) 
 DESede (168 bits) 
 All other algorithms (128 bits) 
 Note: The boot password should have at least as many characters as number of 
 bytes in the encryption key (56 bits=8 bytes, 168 bits=24 bytes, 128 bits=16 
 bytes). The minimum number of characters for the boot password allowed by 
 Derby is eight.
 For AES, however,  it does not tell how to change the default key length  of 
 128.  This can be changed with the encryptionKeyLength connection attribute.  
 The documentation should also specify that special policy files for the JRE 
 may be necessary to accomodate the longer length.
 Also note that there is an outstanding issue DERBY-3710 regarding length of 
 192 for AES.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5757) Attempting to boot Derby with a bad authentication provider creates a zombie Derby which can only be killed by shutting down the VM.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5757:
---

Labels: derby_triage10_10  (was: )

 Attempting to boot Derby with a bad authentication provider creates a zombie 
 Derby which can only be killed by shutting down the VM.
 

 Key: DERBY-5757
 URL: https://issues.apache.org/jira/browse/DERBY-5757
 Project: Derby
  Issue Type: Bug
  Components: Miscellaneous
Affects Versions: 10.9.1.0
Reporter: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10
 Attachments: Derby_5757.java


 If you set the following system properties and try to connect to Derby, this 
 will half-boot Derby. You will not be able to get a connection because no 
 valid authentication service can be found. In addition, you won't be able to 
 bring down the half-booted Derby because that also requires getting a valid 
 authentication service. This is true even if you remove the properties from 
 the system via  System.getProperties().remove(). The bad property settings 
 are stuck inside the half-booted Derby, preventing it from installing a 
 usable authentication service:
 derby.connection.requireAuthentication=true
 derby.authentication.provider=bad:class

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (DERBY-5939) Document URL attribute for database decryption

2012-09-27 Thread Kim Haase (JIRA)
Kim Haase created DERBY-5939:


 Summary: Document URL attribute for database decryption
 Key: DERBY-5939
 URL: https://issues.apache.org/jira/browse/DERBY-5939
 Project: Derby
  Issue Type: Task
  Components: Documentation
Affects Versions: 10.10.0.0
Reporter: Kim Haase
Assignee: Kim Haase


The new decryptDatabase=true attribute implemented by DERBY-5792 needs to be 
documented.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5589) test derby with minmum mandatory java 2 security permissions

2012-09-27 Thread Myrna van Lunteren (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren updated DERBY-5589:
--

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 test derby with minmum mandatory java 2 security permissions
 

 Key: DERBY-5589
 URL: https://issues.apache.org/jira/browse/DERBY-5589
 Project: Derby
  Issue Type: Bug
  Components: Test
Affects Versions: 10.9.1.0
Reporter: Kathey Marsden
  Labels: derby_triage10_10

 The user documentation describes  the mandatory and optimal permissions with 
 Derby:
 http://db.apache.org/derby/docs/10.8/devguide/cdevbabejgjd.html
 Our test policy file: derby_tests.policy has quite a few additional 
 permissions granted.
 There should be some test or some way to run the test suite  where we test 
 with just the mandatory set of permissions

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (DERBY-5573) nightly test failure, encryptParams failed when it found directory already exists.

2012-09-27 Thread Myrna van Lunteren (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren resolved DERBY-5573.
---

Resolution: Cannot Reproduce

10.10 triage; This happened twice in 2008 while testing on the 10.1 branch, and 
since then, only on the same machine where we saw read-only warnings (e.g. 
DERBY-5686).
We've not seen this since I moved the testing to another machine. Resolving as 
cannot reproduce.


 nightly test failure, encryptParams failed when it found directory already 
 exists.
 --

 Key: DERBY-5573
 URL: https://issues.apache.org/jira/browse/DERBY-5573
 Project: Derby
  Issue Type: Bug
  Components: Test
Affects Versions: 10.9.1.0
 Environment: windows ibm16 and windows ibm17
Reporter: Mike Matrigali

 ibm16 failed as follows:
 http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/1231438-derbyall_diff.txt
 Failure Details:
 * Diff file 
 derbyall/derbynetclientmats/DerbyNetClient/encodingTests/TestEnc.diff
 *** Start: TestEnc jdk1.6.0 DerbyNetClient derbynetclientmats:encodingTests 
 2012-01-17 00:36:55 ***
 derbyTesting.encoding can only be used with jdk15, skipping test
 *** End:   TestEnc jdk1.6.0 DerbyNetClient derbynetclientmats:encodingTests 
 2012-01-17 00:36:55 ***
 * Diff file derbyall/encryptionAll/encryptionAll/encryptParams.diff
 *** Start: encryptParams jdk1.6.0 encryptionAll:encryptionAll 2012-01-17 
 00:47:40 ***
 131 del
  ERROR XBM01: Startup failed due to an exception. See next exception for 
 details. 
 132 del
  ERROR XBCXI: The feedback mode 'PCBC' is not supported. Supported feedback 
 modes are CBC, CFB, OFB and ECB.
 132a131
  ERROR XBM0J: Directory 
  D:\jartest\JarResults.2012-01-16\ibm16_derbyall\derbyall\encryptionAll\encryptionAll\encryptParams\D:\jartest\JarResults.2012-01-16\ibm16_derbyall\derbyall\encryptionAll\encryptionAll\encryptParams\wombatBad
   already exists.
 Test Failed.
 *** End:   encryptParams jdk1.6.0 encryptionAll:encryptionAll 2012-01-17 
 00:48:29 ***
 ibm17 failed as follows:
 Failure Details:
 * Diff file 
 derbyall/derbynetclientmats/DerbyNetClient/encodingTests/TestEnc.diff
 *** Start: TestEnc jdk1.7.0 DerbyNetClient derbynetclientmats:encodingTests 
 2012-01-17 03:49:09 ***
 derbyTesting.encoding can only be used with jdk15, skipping test
 *** End:   TestEnc jdk1.7.0 DerbyNetClient derbynetclientmats:encodingTests 
 2012-01-17 03:49:09 ***
 * Diff file derbyall/encryptionAll/encryptionAll/encryptParams.diff
 *** Start: encryptParams jdk1.7.0 encryptionAll:encryptionAll 2012-01-17 
 04:00:35 ***
 125 del
  ERROR XBM01: Startup failed due to an exception. See next exception for 
 details. 
 126 del
  ERROR XBCXH: The encryptionAlgorithm 'DES' is not in the correct format. 
 The correct format is algorithm/feedbackMode/NoPadding.
 126a125
  ERROR XBM0J: Directory 
  D:\jartest\JarResults.2012-01-16\ibm17_derbyall\derbyall\encryptionAll\encryptionAll\encryptParams\D:\jartest\JarResults.2012-01-16\ibm17_derbyall\derbyall\encryptionAll\encryptionAll\encryptParams\wombatBad
   already exists.
 131 del
  ERROR XBM01: Startup failed due to an exception. See next exception for 
 details. 
 132 del
  ERROR XBCXI: The feedback mode 'PCBC' is not supported. Supported feedback 
 modes are CBC, CFB, OFB and ECB.
 132a130
  ERROR XBM0J: Directory 
  D:\jartest\JarResults.2012-01-16\ibm17_derbyall\derbyall\encryptionAll\encryptionAll\encryptParams\D:\jartest\JarResults.2012-01-16\ibm17_derbyall\derbyall\encryptionAll\encryptionAll\encryptParams\wombatBad
   already exists.
 Test Failed.
 *** End:   encryptParams jdk1.7.0 encryptionAll:encryptionAll 2012-01-17 
 04:01:39 ***

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5510) It is easy to override authentication, authorization, and database-only properties if you have physical access to a database.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5510:
---

Labels: derby_triage10_10  (was: )

 It is easy to override authentication, authorization, and database-only 
 properties if you have physical access to a database.
 -

 Key: DERBY-5510
 URL: https://issues.apache.org/jira/browse/DERBY-5510
 Project: Derby
  Issue Type: Bug
  Components: Miscellaneous
Affects Versions: 10.9.1.0
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 If you have write access to the directory containing a Derby database, then 
 the following easy exploit will let you change the contents of the database 
 and possibly evade detection for some time:
 1) Create a vacuous dummy database with this ij command:
  connect 'jdbc:derby:dummydb;create=true';
 2) Copy the properties conglomerate (c10.dat) from the target database to a 
 side location.
 3) Now copy the vacuous c10.dat from dummydb into the seg0 directory of the 
 target database.
 4) Now connect to the target database with the following ij command and 
 change anything you want:
  connect 'jdbc:derby:targetdb';
 5) When you are done, copy c10.dat from the side location back into the seg0 
 directory of the target database.
 I do not regard this as a new vulnerability. That is because once you have 
 write access to a Derby database directory, you have unlimited power to 
 change and corrupt the database. However, I am filing this JIRA so that we 
 will have a name for this particular easy exploit.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5481) Unit tests fail on a derby closed iterator test with a Invalid memory access of location

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5481:
---

Labels: derby_triage10_10  (was: )

 Unit tests fail on a derby closed iterator test with a Invalid memory access 
 of location
 --

 Key: DERBY-5481
 URL: https://issues.apache.org/jira/browse/DERBY-5481
 Project: Derby
  Issue Type: Bug
  Components: Miscellaneous
Affects Versions: 10.8.1.2
 Environment: Eclipse 3.7.0 on Mac OSX 10.7.2
Reporter: Gray Watson
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby.log


 I'm the lead author of ORMLite, a smallish ORM project that supports Derby 
 and some other JDBC and Android databases.  I'm getting a reproducible memory 
 fault during one of my Derby tests.  I've just ignored the test for now in my 
 code but I thought I'd report it.
 To check out the tree svn co 
 http://ormlite.svn.sourceforge.net/svnroot/ormlite/ormliteTest/trunk
 You'll need maven. The DerbyEmbeddedBaseDaoImplTest is the one that fails.  
 Not by itself unfortunately but running the com.j256.ormlite.dao package 
 which is also testing some other database types causes it to fail every time 
 for me.  It's the testCloseInIterator() method defined in the test base class 
 JdbcBaseDaoImplTest.  This test closes the underlying database connection in 
 the middle of an iterator loop to test exception handling.
 Sorry if this is just too obscure to be useful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-5481) Unit tests fail on a derby closed iterator test with a Invalid memory access of location

2012-09-27 Thread Mamta A. Satoor (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-5481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13465249#comment-13465249
 ] 

Mamta A. Satoor commented on DERBY-5481:


It has been almost a year since any activity happened on this jira. Should we 
go ahead and close it until more information is available?

 Unit tests fail on a derby closed iterator test with a Invalid memory access 
 of location
 --

 Key: DERBY-5481
 URL: https://issues.apache.org/jira/browse/DERBY-5481
 Project: Derby
  Issue Type: Bug
  Components: Miscellaneous
Affects Versions: 10.8.1.2
 Environment: Eclipse 3.7.0 on Mac OSX 10.7.2
Reporter: Gray Watson
Priority: Minor
  Labels: derby_triage10_10
 Attachments: derby.log


 I'm the lead author of ORMLite, a smallish ORM project that supports Derby 
 and some other JDBC and Android databases.  I'm getting a reproducible memory 
 fault during one of my Derby tests.  I've just ignored the test for now in my 
 code but I thought I'd report it.
 To check out the tree svn co 
 http://ormlite.svn.sourceforge.net/svnroot/ormlite/ormliteTest/trunk
 You'll need maven. The DerbyEmbeddedBaseDaoImplTest is the one that fails.  
 Not by itself unfortunately but running the com.j256.ormlite.dao package 
 which is also testing some other database types causes it to fail every time 
 for me.  It's the testCloseInIterator() method defined in the test base class 
 JdbcBaseDaoImplTest.  This test closes the underlying database connection in 
 the middle of an iterator loop to test exception handling.
 Sorry if this is just too obscure to be useful.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (DERBY-5593) dblook_test_net_territory fails with extra lines ERROR: deleting: seg0 ERROR: deleting: wombat_new

2012-09-27 Thread Myrna van Lunteren (JIRA)

[ 
https://issues.apache.org/jira/browse/DERBY-5593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13465252#comment-13465252
 ] 

Myrna van Lunteren commented on DERBY-5593:
---

checking through old failure notes, I also see a variation of this in 
http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/1333284-derbyall_diff.txt:

*** Start: dblook_test_net jdk1.6.0 DerbyNetClient 
derbynetclientmats:derbynetclientmats 2012-05-02 23:31:54 ***
2237a2238
 ERROR: deleting: wombat_new
Test Failed.
*** End:   dblook_test_net jdk1.6.0 DerbyNetClient 
derbynetclientmats:derbynetclientmats 2012-05-02 23:33:40 ***

I also see other failures in this test, which look different, seems the server 
cannot be reached, e.g.
http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/1386950-derbyall_diff.txt:
which looks like DERBY-2650. Perhaps these are variations of the same problem, 
which only surface under stress.



 dblook_test_net_territory fails with extra lines ERROR: deleting: seg0  
 ERROR: deleting: wombat_new
 ---

 Key: DERBY-5593
 URL: https://issues.apache.org/jira/browse/DERBY-5593
 Project: Derby
  Issue Type: Bug
  Components: Test
Affects Versions: 10.9.1.0
 Environment: Windows IBM JDK 1.7
Reporter: Kathey Marsden

 on 1/27/2012  10.9.0.0 alpha - (1236968) I saw this error with the derbyall 
 run in the IBM nightlies.
 *** Start: dblook_test_net_territory jdk1.7.0 DerbyNetClient 
 derbynetclientmats:derbynetclientmats 2012-01-28 04:11:56 ***
 2237a2238,2239
  ERROR: deleting: seg0
  ERROR: deleting: wombat_new
 Near the same time I know parallel runs were implemented but I am not sure if 
 derbyall is being run at the same time as anything else or if that is 
 relevant.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5593) dblook_test_net_territory fails with extra lines ERROR: deleting: seg0 ERROR: deleting: wombat_new

2012-09-27 Thread Myrna van Lunteren (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Myrna van Lunteren updated DERBY-5593:
--

Urgency: Normal
 Labels: derby_triage10_10  (was: )

The occurrence of this bug is low, I ran 100 times and it did not reproduce, I 
checked old records, and it's only happened during CPU-stress.

 dblook_test_net_territory fails with extra lines ERROR: deleting: seg0  
 ERROR: deleting: wombat_new
 ---

 Key: DERBY-5593
 URL: https://issues.apache.org/jira/browse/DERBY-5593
 Project: Derby
  Issue Type: Bug
  Components: Test
Affects Versions: 10.9.1.0
 Environment: Windows IBM JDK 1.7
Reporter: Kathey Marsden
  Labels: derby_triage10_10

 on 1/27/2012  10.9.0.0 alpha - (1236968) I saw this error with the derbyall 
 run in the IBM nightlies.
 *** Start: dblook_test_net_territory jdk1.7.0 DerbyNetClient 
 derbynetclientmats:derbynetclientmats 2012-01-28 04:11:56 ***
 2237a2238,2239
  ERROR: deleting: seg0
  ERROR: deleting: wombat_new
 Near the same time I know parallel runs were implemented but I am not sure if 
 derbyall is being run at the same time as anything else or if that is 
 relevant.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5340) Comment in demo server policy should follow RFC 2606 convention

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5340:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Comment in demo server policy should follow RFC 2606 convention
 ---

 Key: DERBY-5340
 URL: https://issues.apache.org/jira/browse/DERBY-5340
 Project: Derby
  Issue Type: Bug
  Components: Demos/Scripts
Affects Versions: 10.8.1.2
Reporter: Kim Haase
Priority: Minor
  Labels: derby_triage10_10

 The basic security policy shown in Running the Network Server under the 
 security manager, which can be found in demo/templates/server.policy, has a 
 comment that refers to acme.com, which should be changed to example.com 
 to conform to the recommendations of the IETF's RFC 2606, Reserved Top Level 
 DNS Names (http://tools.ietf.org/html/rfc2606).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-4930) Polish translations of sysinfo messages are probably being ignored on Linux systems.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-4930:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Polish translations of sysinfo messages are probably being ignored on Linux 
 systems.
 

 Key: DERBY-4930
 URL: https://issues.apache.org/jira/browse/DERBY-4930
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.8.1.2
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 For all languages except Polish, the sysinfo messages live in a file called 
 sysinfoMessages_.properties, where  is the name of the locale. For 
 Polish messages, the M is not capitalized, and the filename is 
 sysinfomessages_pl.properties. On platforms with case-sensitive file names 
 (like Linux), Derby's message resolution machinery probably doesn't find the 
 Polish translations of sysinfo messages. If this is confirmed, we should fix 
 this problem by renaming sysinfomessages_pl.properties to 
 sysinfoMessages_pl.properties.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-4596) We should remove references to IBM's JCC driver

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-4596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-4596:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 We should remove references to IBM's JCC driver
 ---

 Key: DERBY-4596
 URL: https://issues.apache.org/jira/browse/DERBY-4596
 Project: Derby
  Issue Type: Bug
  Components: Miscellaneous
Affects Versions: 10.5.3.0, 10.5.3.1, 10.6.1.0
Reporter: Myrna van Lunteren
Priority: Minor
  Labels: derby_triage10_10

 Since the contribution of the DerbyNetClient to apache, IBM has stopped 
 support of the DB2 JCC driver for Derby.
 We removed references to this from our documentation in DERBY-3816, but there 
 are still numerous places in the code where JCC is mentioned, or fields are 
 left, or chunks of somewhat working code is left behind.
 We should remove this code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-4434) Fix broken and bad/inaccurate links in the Derby FAQ

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-4434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-4434:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Fix broken and bad/inaccurate links in the Derby FAQ
 

 Key: DERBY-4434
 URL: https://issues.apache.org/jira/browse/DERBY-4434
 Project: Derby
  Issue Type: Bug
  Components: Web Site
Affects Versions: 10.6.1.0
Reporter: Kristian Waagan
Priority: Minor
  Labels: derby_triage10_10

 The Derby FAQ at http://db.apache.org/derby/faq.html contains several 
 variations of bad links. These should be fixed.
 Examples:
  - broken links (target no longer exist, very few of this)
  - incomplete links causing redirects
  - broken anchors
  - misc
 Using http://validator.w3.org/checklink will give a list of potential issues 
 to fix.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-2675) Japanese translated error message for 42837 is not clear

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-2675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-2675:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Japanese translated error message for 42837 is not clear
 

 Key: DERBY-2675
 URL: https://issues.apache.org/jira/browse/DERBY-2675
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.2.2.0
Reporter: Tomohito Nakayama
Priority: Minor
  Labels: derby_triage10_10

 Original error message in English is as next.
 ALTER TABLE 'varnamelt;tableNamegt;/varname' specified attributes for 
 column 'varnamelt;columnNamegt;/varname' that are not compatible with 
 the existing column.
 Japanese translated error message is written as if attribute of ALTER TABLE 
 object is imcompatible.
 it is needed to write clearly that attribute of column is imcompatible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-2643) The word index is not correctly translated into Japanese in someplaces

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-2643:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 The word index is not correctly translated into Japanese in someplaces
 --

 Key: DERBY-2643
 URL: https://issues.apache.org/jira/browse/DERBY-2643
 Project: Derby
  Issue Type: Bug
  Components: Localization
Affects Versions: 10.2.2.0
Reporter: Tomohito Nakayama
  Labels: derby_triage10_10

 In some of Japanese translated erorr messages, the word index was 
 translated as database object which was created by CREATE INDEX statement, 
 though intended meaning of the word in original error messages was index 
 number for parameter and so on.
 Where I found problem.
 Error message for 22014 : 
 The start position for LOCATE is invalid; it must be a positive integer. The 
 index  to start the search from is 'varnamelt;fromStringgt;/varname'.  
 The string to search for is 'varnamelt;startIndexgt;/varname'.  The 
 string to search from is 'varnamelt;searchStringgt;/varname'.
 Error message for XJ091 :
 Invalid argument: parameter index varnamelt;indexNumbergt;/varname is 
 not an OUT or INOUT parameter.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5921) Result sets opened before a savepoint could be left open when the savepoint is rolled back

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5921:
---

Issue  fix info: Repro attached
 Urgency: Normal
  Labels: derby_triage10_10  (was: )

 Result sets opened before a savepoint could be left open when the savepoint 
 is rolled back
 --

 Key: DERBY-5921
 URL: https://issues.apache.org/jira/browse/DERBY-5921
 Project: Derby
  Issue Type: Improvement
  Components: JDBC, SQL
Reporter: Dag H. Wanvik
  Labels: derby_triage10_10
 Attachments: Derby5921.java


 Cf discussion on DERBY-5545 with John Hendikx.
 Quote from SQL standard:
 In section 16.7 rollback statement, section General Rule 3) savepoint 
 specified, clause g) reads:
 For every open cursor CR in any SQL-client module associated with the 
 current SQL-transaction that
 was opened subsequent to the establishment of S, the following statement is 
 implicitly executed:
 CLOSE CR
 I take that to mean that the cursor should remain open iff it was established 
 prior to the savepoint, and, by analogy, the JDBC result set should stay open 
 too.
 and clause h):
 The status of any open cursors in any SQL-client module associated with the 
 current SQL-transaction
 that were opened by the current SQL-transaction before the establishment of S 
 is implementation defined. 
 We could allow result sets to stay open since the current behavior closing 
 them maybe be unexpected for users, cf. DERBY-5545.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5893) Add support for the SQL:2008 standard IS [ NOT ] DISTINCT FROM predicate

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5893?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5893:
---

Labels: derby_triage10_10 features  (was: features)

 Add support for the SQL:2008 standard IS [ NOT ] DISTINCT FROM predicate
 

 Key: DERBY-5893
 URL: https://issues.apache.org/jira/browse/DERBY-5893
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10, features

 The SQL:1999 standard specifies the IS [ NOT ] DISTINCT FROM predicate in 
 chapter 8.15 distinct predicate:
 distinct predicate ::=
 row value predicand 3 distinct predicate part 2
 distinct predicate part 2 ::=
 IS [ NOT ] DISTINCT FROM row value predicand 4
 row value predicand 3 ::=
 row value predicand
 row value predicand 4 ::=
 row value predicand
 This predicate is supported by at least these databases:
 - http://www.postgresql.org/docs/9.1/static/functions-comparison.html
 - http://www.h2database.com/html/grammar.html#condition_right_hand_side
 - http://hsqldb.org/doc/guide/ch05.html#N11BB0
 - 
 http://dev.mysql.com/doc/refman/5.6/en/comparison-operators.html#operator_equal-to
  (with a different syntax)
 - 
 http://dcx.sybase.com/1200/en/dbreference/is-distinct-from-search-condition.html
 It would probably make sense for the Derby database to implement it as well.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5861) Provide a diagnostic table function which lets DBOs view the Derby properties understood by their database.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5861:
---

Labels: derby_triage10_10 feature  (was: )

 Provide a diagnostic table function which lets DBOs view the Derby properties 
 understood by their database.
 ---

 Key: DERBY-5861
 URL: https://issues.apache.org/jira/browse/DERBY-5861
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
  Labels: derby_triage10_10, feature
 Attachments: DerbyPropertyViewer.java


 Currently there is no way for the DBO to verify what the database thinks the 
 derby properties are. We could provide a diagnostic table function to show 
 this information. By default only the DBO should be able to run this table 
 function. I will attach a crude workaround.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5837) Add support for SQL standard DATE, TIME, TIMESTAMP literals

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5837:
---

Urgency: Normal

 Add support for SQL standard DATE, TIME, TIMESTAMP literals
 ---

 Key: DERBY-5837
 URL: https://issues.apache.org/jira/browse/DERBY-5837
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.2.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10, feature

 The SQL standard 1992 specifies datetime literals as such:
  datetime literal ::=
 date literal
   | time literal
   | timestamp literal
  date literal ::=
   DATE date string
  time literal ::=
   TIME time string
  timestamp literal ::=
   TIMESTAMP timestamp string
  date string ::=
   quote date value quote
  time string ::=
   quote time value [ time zone interval ] quote
  timestamp string ::=
   quote date value space time value [ time zone 
 interval ] quote
 Taken from:
 http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
 This seems not to be supported directly by Derby. Instead, Derby supports 
 functions for constructing DATE, TIME, TIMESTAMP values. For example:
 http://db.apache.org/derby/docs/dev/ref/rreftimestampfunc.html
 For increased compatibility, it would be nice if literals were implemented 
 according to the standard. In essence, the function's parentheses could be 
 made optional

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5837) Add support for SQL standard DATE, TIME, TIMESTAMP literals

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5837:
---

Labels: derby_triage10_10 feature  (was: )

 Add support for SQL standard DATE, TIME, TIMESTAMP literals
 ---

 Key: DERBY-5837
 URL: https://issues.apache.org/jira/browse/DERBY-5837
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.2.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10, feature

 The SQL standard 1992 specifies datetime literals as such:
  datetime literal ::=
 date literal
   | time literal
   | timestamp literal
  date literal ::=
   DATE date string
  time literal ::=
   TIME time string
  timestamp literal ::=
   TIMESTAMP timestamp string
  date string ::=
   quote date value quote
  time string ::=
   quote time value [ time zone interval ] quote
  timestamp string ::=
   quote date value space time value [ time zone 
 interval ] quote
 Taken from:
 http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
 This seems not to be supported directly by Derby. Instead, Derby supports 
 functions for constructing DATE, TIME, TIMESTAMP values. For example:
 http://db.apache.org/derby/docs/dev/ref/rreftimestampfunc.html
 For increased compatibility, it would be nice if literals were implemented 
 according to the standard. In essence, the function's parentheses could be 
 made optional

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5794) COMPOUND TRIGGER SUPPORT

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5794:
---

Labels: compound derby_triage10_10 performance simplex trigger  (was: 
compound performance simplex trigger)

 COMPOUND TRIGGER SUPPORT
 

 Key: DERBY-5794
 URL: https://issues.apache.org/jira/browse/DERBY-5794
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.1.2
Reporter: Chirag Mehta
Priority: Minor
  Labels: compound, derby_triage10_10, performance, simplex, 
 trigger

 I tried to search the for support of Compound Triggers like Oracle, didn't 
 found any support in Derby 10.8 may be this would be a good functionality we 
 can support. I really like using derby, this is my first project where I 
 start using derby as an interim database for developers. We have oracle in 
 production. So if we have compund trigger support with derby it would be grt.
 Write now as workaround I am creating 3 triggers (After insert, update and 
 delete) in derby and 1 in oracle.
 If we have compound trigger it would increase the performance also.
 Thanks a ton team for your work

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5785) investigate improving identity column performance by reusing nested transaction

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5785:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 investigate improving identity column performance by reusing nested 
 transaction
 ---

 Key: DERBY-5785
 URL: https://issues.apache.org/jira/browse/DERBY-5785
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.2.2
Reporter: Mike Matrigali
Priority: Minor
  Labels: derby_triage10_10

 Currently every insert of row with an identity column creates a nested user 
 transaction to update the 
 value in syscolumns, and then destroys it.  It seems like this transaction 
 could be cached in the user
 context and then reused.  I believe this is what is done for the nested read 
 only transaction that is used
 for compiling statements.  
 The change may improve performance and also lead to less objects being 
 created/destroyed per insert.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5782) Consider lifting the limit on the number of columns which can appear in a SELECT list

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5782:
---

Labels: derby_triage10_10  (was: )

 Consider lifting the limit on the number of columns which can appear in a 
 SELECT list
 -

 Key: DERBY-5782
 URL: https://issues.apache.org/jira/browse/DERBY-5782
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.10.0.0
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 Derby SELECT lists are limited to 1012 columns, the value of 
 Limits.DB2_MAX_ELEMENTS_IN_SELECT_LIST. This limit is not found in the SQL 
 Standard. We should consider lifting it based on user demand: 
 http://old.nabble.com/limit-on-the-number-of-columns-to33901308.html#a33901308

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5740) Remove unsued code in AlterTableConstantaction.columnDroppedAndTriggerDependencies

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5740:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Remove unsued code in 
 AlterTableConstantaction.columnDroppedAndTriggerDependencies
 --

 Key: DERBY-5740
 URL: https://issues.apache.org/jira/browse/DERBY-5740
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Kristian Waagan
Priority: Trivial
  Labels: derby_triage10_10
 Attachments: derby-5740-1a-code_removal.diff


 The following code is executed, but the results are not used:
   CollectNodesVisitor visitor = new 
 CollectNodesVisitor(ColumnReference.class);
   stmtnode.accept(visitor);
   Vector refs = visitor.getList();  --- never used
 I plan to remove the code, but just want to record it here in case there are 
 side-effects by using the visitor.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5728) Add Support for NULL IS NULL

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5728:
---

Labels: derby_triage10_10  (was: )

 Add Support for NULL IS NULL
 

 Key: DERBY-5728
 URL: https://issues.apache.org/jira/browse/DERBY-5728
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.2.2
 Environment: Windows XP
 java version 1.6.0_31
 Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
 Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
Reporter: bernard
Priority: Critical
  Labels: derby_triage10_10
 Attachments: NullParameterEclipseLinkDerbyMaven.zip, 
 NullParameterHibernateDerbyMaven.zip


 The following query fails:
 SELECT ID FROM CUSTOMER WHERE ((NULL IS NULL) OR (NAME = NULL))
 Why this is an issue?
 At least two major Java ORMs, Hibernate JPA and EclipseLink JPA have isues 
 with generating SQL for trivial JPQL queries such as:
 select object(c) from Customer c where ((name: is null) or (c.name = name:))
 where name: is a parameter
 For why this is a fundamental issue, please see a minimalistic JPQL query at
 http://en.wikipedia.org/wiki/Java_Persistence_Query_Language#Examples 
 Part of this has already been resolved by issue Add support for 
 setObject(arg, null)
 https://issues.apache.org/jira/browse/DERBY-1938
 Please see EclipseLink and Hibernate test cases for verification.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5602) Add support for a SQL REPEAT(string, count) function

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5602:
---

Labels: derby_triage10_10 function sql string  (was: function sql string)

 Add support for a SQL REPEAT(string, count) function
 

 Key: DERBY-5602
 URL: https://issues.apache.org/jira/browse/DERBY-5602
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.2.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10, function, sql, string

 A similar function was discussed with Rick Hillegas in this ticket:
 https://issues.apache.org/jira/browse/DERBY-5597
 Apparently, JDBC mentions a REPLACE function in its appendix:
  Compare the JDBC escape function (from Appendix D2 of the 4.1 JDBC spec):
  REPLACE(string1, string2, string3) Replaces all occurrences of string2 in 
  string1 with string3
 It also mentions a REPEAT function
 REPEAT(string, count) A character string formed by repeating string count 
 times
 This REPEAT function would be a nice-to-have enhancement to simulate padding 
 directly in the database, where this may be needed. Most databases ship with 
 some form of REPEAT:
 - RPAD(string, LENGTH(string) * count) in Oracle, Ingres
 - REPLICATE(string, count) in Sybase ASE, SQL Server
 - REPEAT(string, count) in DB2, H2, HSQLDB, MySQL, Postgres, Sybase SQL 
 Anywhere

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5597) Add support for a SQL REPLACE(in, search, replace) function

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5597:
---

Labels: derby_triage10_10 function sql string  (was: function sql string)

 Add support for a SQL REPLACE(in, search, replace) function
 ---

 Key: DERBY-5597
 URL: https://issues.apache.org/jira/browse/DERBY-5597
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.2.2
Reporter: Lukas Eder
  Labels: derby_triage10_10, function, sql, string

 I don't know any other database that lacks this type of function (even SQLite 
 has it):
 REPLACE(in, search)
 REPLACE(in, search, replace)
 But according to the Derby docs, this doesn't exist in Derby:
 http://db.apache.org/derby/docs/10.8/ref/rrefsqlj29026.html
 It would be quite simple to implement, I guess. Yet really useful for many 
 people. Some documentation examples from other databases:
 http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions134.htm
 http://msdn.microsoft.com/de-de/library/ms186862.aspx
 http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2.doc.sqlref%2Ffrepl.htm
 http://dev.mysql.com/doc/refman/5.1/en/string-functions.html#function_replace
 http://hsqldb.org/doc/2.0/guide/builtinfunctions-chapt.html#N135A7

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5585) Improve error messages used when Derby can't find the class or method backing up a SQL routine or type

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5585?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5585:
---

Labels: derby_triage10_10  (was: )

 Improve error messages used when Derby can't find the class or method backing 
 up a SQL routine or type
 --

 Key: DERBY-5585
 URL: https://issues.apache.org/jira/browse/DERBY-5585
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Rick Hillegas
Priority: Minor
  Labels: derby_triage10_10

 When the code supporting user-written routines and types is put into jar 
 files in the database, the user also needs to wire the jar files together by 
 setting the derby.database.classpath  property. People often neglect to do 
 this and Derby documentation in this area could be improved. It would be good 
 to at least improve the error messages which Derby raises in this situation: 
 42X50 and 42X51. Those messages should tell the user that one of the reasons 
 for the failure might be an un/misconfigured derby.database.classpath  
 property. The following script shows the error messages:
 connect 
 'jdbc:derby:memory:db;create=true;user=test_dbo;password=test_dbopassword';
 create function foo( a int ) returns int
 language java parameter style java no sql
 external name 'Bop.doowop';
 create function bar( a int ) returns int
 language java parameter style java no sql
 external name 'java.lang.Integer.doowop';
 values ( foo( 1 ) );
 values ( bar( 1 ) );

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5548) Implement a GRANT/REVOKE scheme for authorizing system-wide operations

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5548:
---

Labels: derby_triage10_10  (was: )

 Implement a GRANT/REVOKE scheme for authorizing system-wide operations
 --

 Key: DERBY-5548
 URL: https://issues.apache.org/jira/browse/DERBY-5548
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 This is an alternative proposal for how we could authorize system-wide 
 operations. Those operations are:
 o Database creation
 o Database restoration
 o Engine shutdown
 o Server shutdown
 o Server startup
 Currently, any valid Derby user can execute all of those operations. This 
 leaves Derby-powered applications vulnerable to resource-exhaustion and 
 denial-of-service attacks. There is no reason that a data-entry clerk should 
 have the power to bring down an enterprise-wide application.
 DERBY-2109 describes our first attempt to implement authorization for 
 system-wide operations. The work on that issue was never completed. Under the 
 DERBY-2109 scheme, system-wide operations are authorized by entries in the 
 application's Java security policy. That scheme has some shortcomings:
 1) Configuring Java security policy files is tricky. It is easy to make 
 mistakes. Furthermore, the policy file reader does not give you much 
 assistance in tracking down and correcting those mistakes.
 2) The scheme only grants privileges to individual users. You can't grant 
 system-wide privileges to roles.
 The following alternative scheme builds on the idea of a Credentials DB, 
 introduced by the work on DERBY-866. Thanks to Dag for helping puzzle through 
 these issues.
 -
 A system-wide Credentials DB could be used to store system-wide privileges in 
 addition to system-wide credentials. 2 variants of this proposal have been 
 considered:
 i) We could introduce some new privileges, extensions to the SQL Standard 
 privilege set. The DBO of the Credentials DB could grant and revoke these 
 privileges to/from users/roles:
DERBY_CREATE_DATABASE
DERBY_RESTORE_DATABASE
DERBY_SHUTDOWN_ENGINE
DERBY_SHUTDOWN_SERVER
DERBY_STARTUP_SERVER
 ii) Alternatively, we could introduce some new system routines to represent 
 the system-wide operations. Privilege to perform the operations would depend 
 on whether a user/role had been granted EXECUTE privilege on the 
 corresponding routines:
syscs_util.syscs_create_database()
syscs_util.syscs_restore_database()
syscs_util.syscs_shutdown_engine()
syscs_util.syscs_shutdown_server()
syscs_util.syscs_startup_server()
 A new Derby property would configure whether this authorization scheme should 
 be used. This property would be set at the system level, that is, on the JVM 
 properties or in derby.properties:
   -Dderby.system.authorization=NATIVE
 If we implemented this scheme in the 10.9 timeframe, then we could default it 
 to being on whenever NATIVE authentication was on at the system level. For 
 instance, for an application with one database, myDB, NATIVE authentication 
 and authorization would both be switched on by setting one knob:
   -Dderby.authentication.provider=NATIVE:myDB
 We could also introduce a new attribute on the connection URL:
   role=roleName
 Here for instance would be the processing flow when a user tried to connect 
 with the following URL:
   jdbc:derby:;shutdown=true;user=alice;password=alicepassword;role=sysadmin
 a) A connection would be opened to the Credentials DB using alice's 
 credentials.
 b) On that connection, an attempt would be made to set role sysadmin. If 
 that failed, the shutdown would error out.
 c) If the role change succeeded, Derby would verify whether alice or the 
 sysadmin role had been granted privilege to shutdown the engine. If not, the 
 shutdown would error out.
 d) If the privilege had been granted, then orderly shutdown would be 
 performed.
 It should be possible to make this authorization scheme work regardless of 
 the authentication scheme being used. That is, it could work regardless of 
 whether you were using LDAP, custom, or NATIVE authentication.
 A key advantage of this scheme is that it would be easy to administer using 
 familiar GRANT/REVOKE commands.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5466) Add support for SQL Standard statistics functions, such as STDDEV_POP, STDDEV_SAMP, VAR_POP, VAR_SAMP

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5466:
---

Labels: derby_triage10_10  (was: )

 Add support for SQL Standard statistics functions, such as STDDEV_POP, 
 STDDEV_SAMP, VAR_POP, VAR_SAMP
 -

 Key: DERBY-5466
 URL: https://issues.apache.org/jira/browse/DERBY-5466
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.1.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10

 Any of these RDBMS support the SQL standard statistics functions STDDEV_POP, 
 STDDEV_SAMP, VAR_POP, VAR_SAMP:
 - DB2 (only STDDEV, VARIANE)
 - H2 
 - HSQLDB 
 - Ingres 
 - MySQL 
 - Oracle 
 - Postgres 
 - SQL Server (named STDEVP, STDEV, VARP, VAR)
 - Sybase ASE
 - Sybase SQL Anywhere
 These don't:
 - Derby
 - SQLite
 This would be a useful addition for Derby, I think.
 An even larger example list of possible statistics aggregate functions is 
 listed in the Postgres documentation:
 http://www.postgresql.org/docs/9.0/static/functions-aggregate.html#FUNCTIONS-AGGREGATE-STATISTICS-TABLE

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5451) Allow for casting numeric types to BOOLEAN

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5451:
---

Labels: cast conversion derby_triage10_10 sql syntax type typesystem  (was: 
cast conversion sql syntax type typesystem)

 Allow for casting numeric types to BOOLEAN
 --

 Key: DERBY-5451
 URL: https://issues.apache.org/jira/browse/DERBY-5451
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.1.2
Reporter: Lukas Eder
Priority: Minor
  Labels: cast, conversion, derby_triage10_10, sql, syntax, type, 
 typesystem

 According to the casting matrix:
 http://db.apache.org/derby/docs/10.8/ref/rrefsqlj33562.html
 it is currently not possible to write CAST(1 as BOOLEAN). At the same time, 
 casting CHAR and VARCHAR as BOOLEAN is possible, e.g. CAST('1' as BOOLEAN), 
 or CAST(CAST(1 as CHAR(1)) as BOOLEAN). This was recently implemented:
 https://issues.apache.org/jira/browse/DERBY-4658

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5403) implement further syntax for truncate table support - identityBehavior clause

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5403:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 implement further syntax for truncate table support - identityBehavior clause
 -

 Key: DERBY-5403
 URL: https://issues.apache.org/jira/browse/DERBY-5403
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Myrna van Lunteren
Priority: Minor
  Labels: derby_triage10_10

 Since 10.7 basic support for TRUNCATE TABLE has been implemented (see 
 DERBY-268) and documented (see DERBY-4802).
 However, according to the SQL Standard (F200 in SQL:2008) the full syntax 
 includes an identityBehavior clause:
 TRUNCATE TABLE tableName [ identityBehavior ]
 identityBehavior ::=
CONTINUE IDENTITY
| RESTART IDENTITY 
 This clause has not been fully implemented.
 Reading through DERBY-268 yields more details, e.g.:
 (https://issues.apache.org/jira/browse/DERBY-268?focusedCommentId=12905937page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12905937):
 A follow-on effort might be to implement the optional CONTINUE IDENTITY and 
 RESTART IDENTITY clauses. Fortunately, the tricky bit of RESTART IDENTITY has 
 already been implemented. The tricky bit is the following implied statement 
 which is executed after truncating the table:
 ALTER TABLE tableName ALTER COLUMN RESTART WITH initialValue 
 and:
 (https://issues.apache.org/jira/browse/DERBY-268?focusedCommentId=12912378page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12912378)
  [...]sqlgrammar.jj would be a good starting point
 and:
 ( 
 https://issues.apache.org/jira/browse/DERBY-268?focusedCommentId=12916134page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12916134):
 [...]all of this code should be in the engine. The good news is that both 
 TRUNCATE TABLE and ALTER TABLE ALTER COLUMN RESTART are handled by the 
 AlterTableConstantAction machinery at run time. If I were tackling this, I 
 would first try something along these lines:
 o AlterTableNode.bindStatement() will need to build a tableElementList 
 structure for TRUNCATE TABLE, describing the identity column which needs to 
 be re-initialized. For ALTER TABLE ALTER COLUMN RESTART, that 
 tableElementList is created by the parser.
 o That tableElementList structure will then be picked up by 
 AlterTableNode.prepConstantAction and turned into a ColumnInfo array when the 
 run time structures are generated for TRUNCATE TABLE. The ColumnInfo[] 
 structure should contain enough information to describe the change to the 
 identity column.
 o The column info structure will then be processed by 
 AlterTableConstantAction.executeConstantAction() at run time.
 You may need to tweak the code a bit to get this to function, but I think 
 this basic processing flow should work.[...]
 and the comments in DERBY-268 after Oct 10, 2010 all refer to an aborted 
 attempt by Eranda to work on this functionality, including a tentative patch.
 I'll mark this issue beginner because of that preliminary work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5399) Reimplement the sensitive diagnostic VTIs as table functions so that the DBO can grant SELECT access to them in a straightforward way.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5399:
---

Labels: derby_triage10_10  (was: )

 Reimplement the sensitive diagnostic VTIs as table functions so that the DBO 
 can grant SELECT access to them in a straightforward way.
 --

 Key: DERBY-5399
 URL: https://issues.apache.org/jira/browse/DERBY-5399
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 This is the more complicated solution (2) discussed on DERBY-5395. 
 Re-implementing the diagnostic VTIs as table functions (with metadata tuples 
 in the system catalogs) would make it more straightforward for the DBO to 
 grant tech support roles access to this data.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5323) SYSDEPENDS may be keeping redundant dependency info. Specific information for trigger case in this jira but there might be other cases as well

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5323:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 SYSDEPENDS may be keeping redundant dependency info. Specific information for 
 trigger case in this jira but there might be other cases as well
 --

 Key: DERBY-5323
 URL: https://issues.apache.org/jira/browse/DERBY-5323
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Mamta A. Satoor
  Labels: derby_triage10_10

 During DERBY-5120 investigation, Rick had suggestions on improving how Derby 
 keeps dependency in it's system table. Refer to that jira for more 
 information but information posted by Rick specifically for trigger is copied 
 here
 -- THEORY -
 The following discussion relies on these definitions and assumptions:
 i) Invaliding events - These include object dropped and object modified.
 ii) A - B - This is a dependency arc. It is shorthand for A depends on 
 B. Invalidating events travel backward along the dependency arcs, allowing 
 each object to decide how to respond to the event. Possible responses 
 include: raise an exception because RESTRICT semantics are violated and 
 recompile me.
 iii) Dependency Graph - This is a graph of all dependency arcs needed by 
 Derby. The nodes in this graph are the persistent objects plus 
 PreparedStatements. There is an arrow from A to B iff A - B.
 iv) Transitivity - The Dependency Graph obeys the following rule:
   if A - B and B - C, then A - C
 v) SYSDEPENDS contains dependency arcs between persistent objects.
 vi) Sufficient - SYSDEPENDS is said to be sufficient if it contains enough 
 dependency arcs to reconstruct the entire Dependency Graph. Note that 
 SYSDEPENDS is not the only input to constructing the Dependency Graph. Some 
 arcs are implicitly described by other catalogs. Transitivity can be used to 
 construct further arcs.
 vii) Minimal - SYSDEPENDS is said to be minimal if it contains the smallest 
 number of arcs needed to reconstruct the entire Dependency Graph. For 
 instance, if SYSDEPENDS contains the arcs A - B and B - C then 
 SYSDEPENDS does not need to contain the A - C arc because Derby can 
 reconstruct that arc from the Transitivity rule.
 viii) Fuzzy - SYSDEPENDS is said to be fuzzy if it contains arcs that are not 
 in the Dependency Graph.
 I would venture the following:
 I) SYSDEPENDS should be Sufficient and not Fuzzy.
 II) Even if SYSDEPENDS is Sufficient, Derby may have a bug which prevents it 
 from constructing the complete Dependency Graph. For instance, Derby may be 
 ignoring relevant information in other catalogs.
 III) I do not believe that SYSDEPENDS is Minimal. When DDL creates new arcs 
 in the Dependency Graph, Derby does not recompute the contents of SYSDEPENDS 
 just to guarantee a Minimal representation.
 - EXAMPLE --
 Let's apply this to a trigger example.
   INSERTs into table T1 fire a trigger which INSERTs into table T2
 This example gives rise to the following persistent objects:
   Tables T1 and T2
   Corresponding conglomerates C1 and C2
   Trigger TR
   Action statement A
 The following would be a Minimal representation in SYSDEPENDS:
   TR - T1
   A - T2
 Note that the following additional arcs do not need to be modelled in 
 SYSDEPENDS, but can be constructed by Derby from information in other 
 catalogs:
   T1 - C1
   C1 - T1
   T2 - C2
   C2 - T2
   TR - A
   A - TR
 Other arcs arise via the Transitive rule.
 What we actually see in SYSDEPENDS is the following Sufficient, non-Minimal 
 representation:
   TR - T1
   TR - A (non-Minimal, could be constructed from SYSTRIGGERS)
   A - T1 (non-Minimal, could be constructed by Transitivity)
   A - T2
   A - C2 (non-Minimal, could be constructed by Transitivity)
 Here is a script which shows this example:
 connect 'jdbc:derby:memory:db;create=true';
 create table t1( a int );
 create table t2( a int );
 create trigger trig after insert on t1 for each statement insert into t2( a ) 
 values( 1 );
 select * from sys.sysdepends order by dependentid, providerid;
 select tablename, tableid from sys.systables where tablename like 'T%';
 select t.tablename, c.conglomerateid
 from sys.systables t, sys.sysconglomerates c
 where tablename like 'T%'
 and t.tableid = c.tableid;
 select triggerid from sys.systriggers; 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5320) Support for RPAD, LPAD, REPEAT string functions

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5320:
---

Labels: derby_triage10_10  (was: )

 Support for RPAD, LPAD, REPEAT string functions
 ---

 Key: DERBY-5320
 URL: https://issues.apache.org/jira/browse/DERBY-5320
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.1.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10

 Some users might find it useful, if Derby officially supported RPAD, LPAD, 
 and REPEAT functions. I know these functions can be implemented with user 
 defined functions, too. But many other RDBMS have built-in support for them

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5295) Make Derby self-tune the preallocated ranges for identity columns and sequences.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5295:
---

Labels: derby_triage10_10  (was: )

 Make Derby self-tune the preallocated ranges for identity columns and 
 sequences.
 

 Key: DERBY-5295
 URL: https://issues.apache.org/jira/browse/DERBY-5295
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 Greater throughput can be achieved by configuring how many values Derby 
 preallocates for sequences and identity columns. It may be possible for Derby 
 to self-tune the length of these preallocated ranges rather than hardcoding a 
 one-size-fits-all length. The logic would go into the SequenceRange class. 
 For more discussion of the issues, see DERBY-4437.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5294) Enhance compress table to drop and recreate the triggers. This will enable pre-10.9 triggers (after hard upgrade to 10.9) to read only the required columns from the trigg

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5294:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Enhance compress table to drop and recreate the triggers. This will enable 
 pre-10.9 triggers (after hard upgrade to 10.9) to read only the required 
 columns from the trigger table.
 ---

 Key: DERBY-5294
 URL: https://issues.apache.org/jira/browse/DERBY-5294
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Mamta A. Satoor
  Labels: derby_triage10_10
 Attachments: DERBY5289_alltriggers_06282011_diff.txt, 
 DERBY5289_alltriggers_06282011_stat.txt


 Triggers created prior to 10.9 release will continue to read all the columns 
 from trigger table even after database has been upgraded to 10.9 and higher. 
 Which in another words means that such triggers will not benefit from work 
 done for DERBY-1482.
 With DERBY-1482 (which went in 10.9 codeline), triggers will read only the 
 columns needed by the triggering sql and firing triggers. But this applies 
 only to triggers created in 10.9 and higher. Any triggers created prior to 
 10.9 will not be able to take advantage of DERBY-1482 because those triggers 
 do not keep the information about the trigger action columns. Currently, the 
 users will have to drop and recreate the triggers which use the REFERENCING 
 CLAUSE and were created prior to 10.9 to take advantage of DERBY-1482.
 The alternative to manual drop and recreate of such triggers can be explored 
 as part of this jira. Couple options are
 1)UPDATE sql should detect that the trigger does not have information about 
 the trigger action columns and hence it should make the trigger collect that 
 information.
 2)At the time of upgrade, when we mark all the SPSes invalid, detect the 
 triggers which do not have the information about the trigger action columns 
 and make those triggers collect that information.
 3)Enhance ALTER TABLE COMPRESS to detect the triggers which do not have the 
 information about the trigger action columns and make those triggers collect 
 that information. With this option, users will still have to manually do 
 ALTER TABLE COMPRESS to fix the triggers but atleast they won't have to get 
 the original trigger definitions and drop and recreate the triggers using 
 those original trigger definitions.
 10.9 currently does not have central place where the trigger will go and 
 collect the information about trigger action columns. We do have code in 
 ALTER TABLE DROP COLUMN to collect the trigger action column info but it will 
 probably better to have such a code in TriggerDescriptor so it can be used by 
 the approach taken to fix this jira.
 Note that without the fix for this jira, the triggers created prior to 10.9 
 will work just fine after upgrade to 10.9 and higher but they will not be 
 able to prevent reading of columns that are not necessary for the triggering 
 sql and firing triggers

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5235) Remove the artificial limit on the length of VARCHAR values, allowing them to be java.lang.Integer.MAX_VALUE long

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5235:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Remove the artificial limit on the length of VARCHAR values, allowing them to 
 be java.lang.Integer.MAX_VALUE long
 -

 Key: DERBY-5235
 URL: https://issues.apache.org/jira/browse/DERBY-5235
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.9.1.0
Reporter: Rick Hillegas
  Labels: derby_triage10_10

 The original Cloudscape limit for the length of VARCHAR values was 
 java.lang.Integer.MAX_VALUE. That is the limit in Cloudscape 5.1. Nothing in 
 Derby should break if we restore the original limit. The current limit is an 
 artificial bound introduced to make Derby agree with DB2. 32672 is the upper 
 bound on the length of a DB2 VARCHAR: 
 http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0001029.htm

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5216) Add support for GREATEST and LEAST functions

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5216:
---

Labels: derby_triage10_10 function sql  (was: function sql)

 Add support for GREATEST and LEAST functions
 

 Key: DERBY-5216
 URL: https://issues.apache.org/jira/browse/DERBY-5216
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.8.1.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10, function, sql

 A lot of RDMBS support GREATEST and LEAST functions with a variable number of 
 parameters. The underlying RDBMS will then return the greatest/least of n 
 values:
 5 = GREATEST(1, 2, 3, 4, 5)
 1 = LEAST(1, 2, 3)
 I think this would be a nice enhancement for Derby, too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5214) Make DATETIME arithmetic functions easier to use

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5214:
---

Labels: derby_triage10_10 escape function sql syntax  (was: escape function 
sql syntax)

 Make DATETIME arithmetic functions easier to use
 

 Key: DERBY-5214
 URL: https://issues.apache.org/jira/browse/DERBY-5214
 Project: Derby
  Issue Type: Improvement
  Components: JDBC, SQL
Affects Versions: 10.8.1.2
Reporter: Lukas Eder
Priority: Minor
  Labels: derby_triage10_10, escape, function, sql, syntax

 Quite a few functions are supported in Derby's proprietary JDBC escape 
 syntax:
 http://db.apache.org/derby/docs/10.8/ref/rrefjdbc88908.html
 Most of those functions can also be used without that syntax, e.g.
 SELECT {fn abs(FIELD)}, abs(FIELD) FROM TABLE
 will return two times the same value.
 This doesn't hold true for TIMESTAMPADD and TIMESTAMPDIFF, which are not 
 available in the regular syntax according to:
 http://db.apache.org/derby/docs/10.8/ref/rrefsqlj29026.html
 It would probably be a lot simpler for most users, not to get used to the {fn 
 ...} syntax.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5179) Support ALTER DATABASE to change collation

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5179:
---

Urgency: Normal
 Labels: derby_triage10_10  (was: )

 Support ALTER DATABASE to change collation
 --

 Key: DERBY-5179
 URL: https://issues.apache.org/jira/browse/DERBY-5179
 Project: Derby
  Issue Type: Improvement
  Components: SQL, Store
Reporter: Brett Wooldridge
  Labels: derby_triage10_10

 DERBY-1748 added the ability to control the collation of the database during 
 database creation, but leaves users with existing databases with no way to 
 upgrade their databases.  In the case of my company, we have many Derby 
 deployments in the field in production, and dropping and recreating the 
 database during upgrade is not possible (or acceptable).
 Similar to MySQL, Derby should support ALTER DATABASE to change the default 
 collation of a database.  For reference, the MySQL syntax is:
 ALTER {DATABASE | SCHEMA} [db_name]
 alter_specification ...
 alter_specification:
 [DEFAULT] CHARACTER SET [=] charset_name
   | [DEFAULT] COLLATE [=] collation_name
 I would suggest that this syntax is perfectly acceptable, and should be 
 adopted by Derby.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5151) Don't leak unused identity/sequence values on abnormal exit.

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5151:
---

Labels: derby_triage10_10  (was: )

 Don't leak unused identity/sequence values on abnormal exit.
 

 Key: DERBY-5151
 URL: https://issues.apache.org/jira/browse/DERBY-5151
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Reporter: Mark Holster
  Labels: derby_triage10_10
 Attachments: sequence-no-cache.patch


 Currently, a sequence in Derby always uses a pre allocating cache. I'm 
 working on an usecase which requires a number to increase with a fixed value. 
 The usecase fails after a restart because of the pre allocating cache.
 I've created a patch that adds the options CACHE | NO CACHE to the create 
 sequence statement. When no cache is provided, the pre allocating cache size 
 will be set to 1, which results in a no cache sequence.
 I've followed the CYCLE | NO CYCLE code as much as possible. Tested it in my 
 own app and it seems to work fine.
 RH: Note that part of this issue has been addressed by the work on 
 DERBY-4437. Sequence values will NOT leak now if you perform an orderly 
 shutdown of your database. However, values still leak if the VM exits before 
 the database has been shutdown. I have changed this issue's title to indicate 
 that the remaining work applies to both sequences and identity columns.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5149) column LIKE UPPER( string constant ) result in a table scan even if a valid index exists on column

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5149:
---

Labels: derby_triage10_10  (was: )

 column LIKE UPPER( string constant ) result in a table scan even if a 
 valid index exists on column
 

 Key: DERBY-5149
 URL: https://issues.apache.org/jira/browse/DERBY-5149
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.7.1.1
Reporter: Stephane Claret
  Labels: derby_triage10_10

 I am currently trying to use generated columns to do some some case 
 insensitive search query, here's a simplified version of my table :
 CREATE TABLE PRODUCTS (
   ID VARCHAR(100) NOT NULL,
   NAME VARCHAR(100) NOT NULL,
   UPPERNAME VARCHAR(100) DEFAULT GENERATED ALWAYS AS ( 
 UPPER(NAME) ) 
   );
 CREATE UNIQUE INDEX PRIMARY_KEY_F ON PRODUCTS (ID ASC);
 CREATE INDEX PRODUCTS_UNAME ON PRODUCTS (UPPERNAME ASC);
 ALTER TABLE PRODUCTS ADD CONSTRAINT CONSTRAINT_F PRIMARY KEY (ID);
 The table is filled with about 30k records.
 When running the following query 
 SELECT id, name 
 FROM PRODUCTS 
 WHERE uppername LIKE 'PC%'
 the index is correctly used while this one :
 SELECT id, name 
 FROM PRODUCTS 
 WHERE uppername LIKE  UPPER('pc%')
 triggers a table scan. I have not tested yet but I suspect it works the same 
 for every SQL function (not only UPPER). 
 This behavior could (should?) be optimized when the right operand of LIKE or 
 = is a function taking a constant in parameter.
 This might be linked to this issue :
 https://issues.apache.org/jira/browse/DERBY-4791

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5147) Convert remaining store SQL tests into JUnit tests

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5147:
---

Component/s: Tools
Urgency: Normal
 Labels: derby_triage10_10 gsoc11  (was: gsoc11)

 Convert remaining store SQL tests into JUnit tests
 --

 Key: DERBY-5147
 URL: https://issues.apache.org/jira/browse/DERBY-5147
 Project: Derby
  Issue Type: Task
  Components: SQL, Store, Tools
Affects Versions: 10.8.1.2
Reporter: Tiago R. Espinha
  Labels: derby_triage10_10, gsoc11

 Some of the store SQL tests are still being ran on the harness. It would be 
 interesting to have these converted over to JUnit as part of GSoC.
 From checking storemats.runall, it seems the following tests are still left:
 store/RowLockBasic.sql
 store/TableLockBasic.sql
 store/longColumn.sql
 store/madhare.sql
 store/updatelocksJDBC30.sql
 store/updatelocks.sql
 For whichever student ends up taking the GSoC project, please file individual 
 JIRA issues for each of these test conversions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5142) Optimizer uses table scan when it could use index when multiple OR clauses

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5142:
---

Urgency: Normal

 Optimizer uses table scan when it could use index when multiple OR clauses
 --

 Key: DERBY-5142
 URL: https://issues.apache.org/jira/browse/DERBY-5142
 Project: Derby
  Issue Type: Improvement
  Components: SQL, Store
Reporter: Karl Wright
 Attachments: repro5142.diff


 The Derby optimizer doesn't seem to recognize that a query like this:
 SELECT id,distance,linktype FROM hopcount WHERE (jobid=? AND linktype=? AND 
 parentidhash=?) OR (jobid=? AND linktype=? AND parentidhash=?)
 ... might be best planned by using an index declared on hopcount as 
 (jobid,linktype,parentidhash).  Instead, a table scan is always used, no 
 matter how big the table.  Other databases have no trouble with constructs 
 like this.
 This is a very common situation, and blocks Apache ManifoldCF from using 
 Derby as its primary database choice.
 I've verified that the index IS successfully used with the same table 
 statistics when the query has only ONE clause, e.g.:
 SELECT id,distance,linktype FROM hopcount WHERE (jobid=? AND linktype=? AND 
 parentidhash=?) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5142) Optimizer uses table scan when it could use index when multiple OR clauses

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5142:
---

Labels: derby_triage10_10  (was: )

 Optimizer uses table scan when it could use index when multiple OR clauses
 --

 Key: DERBY-5142
 URL: https://issues.apache.org/jira/browse/DERBY-5142
 Project: Derby
  Issue Type: Improvement
  Components: SQL, Store
Reporter: Karl Wright
  Labels: derby_triage10_10
 Attachments: repro5142.diff


 The Derby optimizer doesn't seem to recognize that a query like this:
 SELECT id,distance,linktype FROM hopcount WHERE (jobid=? AND linktype=? AND 
 parentidhash=?) OR (jobid=? AND linktype=? AND parentidhash=?)
 ... might be best planned by using an index declared on hopcount as 
 (jobid,linktype,parentidhash).  Instead, a table scan is always used, no 
 matter how big the table.  Other databases have no trouble with constructs 
 like this.
 This is a very common situation, and blocks Apache ManifoldCF from using 
 Derby as its primary database choice.
 I've verified that the index IS successfully used with the same table 
 statistics when the query has only ONE clause, e.g.:
 SELECT id,distance,linktype FROM hopcount WHERE (jobid=? AND linktype=? AND 
 parentidhash=?) 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (DERBY-5138) Why can not create session indexes, session unique indexes and identity columns in temporary session tables

2012-09-27 Thread Mamta A. Satoor (JIRA)

 [ 
https://issues.apache.org/jira/browse/DERBY-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mamta A. Satoor updated DERBY-5138:
---

Labels: derby_triage10_10 features  (was: features)

 Why can not create session indexes, session unique indexes and identity 
 columns in temporary session tables
 ---

 Key: DERBY-5138
 URL: https://issues.apache.org/jira/browse/DERBY-5138
 Project: Derby
  Issue Type: Improvement
  Components: SQL
Affects Versions: 10.7.1.1
 Environment: windows, linux
Reporter: Oscar Bonilla
  Labels: derby_triage10_10, features
 Attachments: DB2 script.txt


 I am a senior programmer in sybase (transact sql) and Oracle. I had to 
 convert a lot of programs to work in DB2. There are many processes that 
 require a lot of rows in temporary tables that needs join together, and they 
 expends much time to execute without indexes. I have to transform the logic 
 to do that with permanent tables with indexes those I have to drop after the 
 process. Now, DB2 can do create unique index SESSION.xx_I01 on SESSION xx 
 and this resolve my problem with the efficienty of the processes. In another 
 hand, I do not have any problem to use GENERATED ALWAYS AS IDENTITY in a 
 temporary session table in DB2.  With this 2 issues it is imposible to 
 migrate all the systems to work with Derby. Thank.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira