db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunitha Kambhampati <ksunitha...@gmail.com>
Subject Re: [jira] Created: (DERBY-595) Using derby.language.logStatementText=true can mask certain exceptions and lead to incorrect behavior in some cases
Date Sun, 02 Oct 2005 04:12:45 GMT
As an aside, should we be printing out the paramter values (that are set 
using streams)  in derby.log when 
derby.language.logStatementText=true.?  We can run out of memory if this 
property is enabled as it will print out the string values to derby.log. 
 
Should we advise users to not use this property when setting really 
large  parameter values...

Thoughts/comments.

Thanks,
Sunitha.

Sunitha Kambhampati (JIRA) wrote:

>Using derby.language.logStatementText=true can mask certain exceptions and lead to incorrect
behavior in some cases
>-------------------------------------------------------------------------------------------------------------------
>
>         Key: DERBY-595
>         URL: http://issues.apache.org/jira/browse/DERBY-595
>     Project: Derby
>        Type: Bug
>  Components: SQL  
>    Versions: 10.0.2.0, 10.0.2.1, 10.1.1.0    
> Environment: all
>    Reporter: Sunitha Kambhampati
>
>
>Using derby.language.logStatementText=true can mask certain exceptions and lead to incorrect
behavior.
>
>I observed this with tests using streams, where if valid (expected) exceptions are raised
when DVD.getString() is called, the exception gets eaten up when this property is set. 
>
>See 
>1)in GenericParameter.toString()
>try
>{
>return value.getString();
>}
>catch (StandardException se)
>{
>return "unexpected exception from getString() - " + se;
>}
>}
>
>2)in GenericPreparedStatement.execute(), where pvs.toString() is called for the parameters.
>________
>
>Reproduction:   Run the test jdbcapi/resultsetStream.java , with derby.language.logStatementText=true
and you can use the test fails and the exception wont be thrown for the error cases.
>
>
>I looked at the tests that use streams , only the store/streamingColumn.java  uses derby.language.logStatementText=true
property set. I'll file another bug to resolve this test.
>
>  
>


Mime
View raw message