Issue Details (XML | Word | Printable)

Key: DERBY-2606
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Kathey Marsden
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Derby should print the parameters to failed statements to the derby.log when it logs the error

Created: 03/May/07 09:35 PM   Updated: 04/May/07 08:56 PM
Return to search
Component/s: Services
Affects Version/s: 10.3.1.4
Fix Version/s: 10.1.3.2, 10.2.2.1, 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File d2602.java 2007-05-04 05:39 PM Kathey Marsden 2 kB
Text File Licensed for inclusion in ASF works DERBY_2606_diff.txt 2007-05-04 05:52 PM Kathey Marsden 0.6 kB
Text File Licensed for inclusion in ASF works DERBY_2606_stat.txt 2007-05-04 05:53 PM Kathey Marsden 0.1 kB

Resolution Date: 04/May/07 08:56 PM


 Description  « Hide
It would be good if when derby dumped an error to derby.log it printed the parameters for the failed statement. Currently the default behaviour is that only the statement text will print. Users have to set derby.language.logStatementText=true if they want to see the parameters. It would be useful if any errors included the parameters as well as the statement text.

To reproduce

put derby.stream.error.logSeverityLevel=0 in your derby.properties and run this script:

 connect 'jdbc:derby:wombat;create=true';
create table t (i int);
prepare p as 'insert into t values(?)';

 execute p using 'values(1)';
execute p using 'values(10000000000000000000000000000000000000000000)';

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #535373 Fri May 04 20:24:50 UTC 2007 kmarsden DERBY-2606 Derby should print the parameters to failed statements to the derby.log when it logs the error
Files Changed
MODIFY /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java

Repository Revision Date User Message
ASF #535376 Fri May 04 20:40:21 UTC 2007 kmarsden DERBY-2606 - Derby should print the parameters to failed statements to the derby.log when it logs the error
Files Changed
MODIFY /db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java

Repository Revision Date User Message
ASF #535377 Fri May 04 20:45:46 UTC 2007 kmarsden DERBY-2606 - Derby should print the parameters to failed statements to the derby.log when it logs the error
Files Changed
MODIFY /db/derby/code/branches/10.2/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java