db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r535373 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
Date Fri, 04 May 2007 20:24:51 GMT
Author: kmarsden
Date: Fri May  4 13:24:50 2007
New Revision: 535373

URL: http://svn.apache.org/viewvc?view=rev&rev=535373
Log:
DERBY-2606 Derby should print the parameters to failed statements to the derby.log when it
logs the error


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java?view=diff&rev=535373&r1=535372&r2=535373
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/conn/GenericStatementContext.java
Fri May  4 13:24:50 2007
@@ -735,7 +735,7 @@
 
 			sb.append(getStatementText());
 
-			if (lcc.getLogStatementText() && (pvs != null) && pvs.getParameterCount()
> 0)
+			if ((pvs != null) && pvs.getParameterCount() > 0)
 			{
 				String pvsString = " with " + pvs.getParameterCount() +
 						" parameters " + pvs.toString();



Mime
View raw message