cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/transformation SQLTransformer.java
Date Thu, 13 Mar 2003 15:10:58 GMT
jeremy      2003/03/13 07:10:56

  Modified:    src/blocks/databases/java/org/apache/cocoon/transformation
                        SQLTransformer.java
  Log:
  needed to .trim() the SQL Query as well
  
  Revision  Changes    Path
  1.4       +2 -2      cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/transformation/SQLTransformer.java
  
  Index: SQLTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/databases/java/org/apache/cocoon/transformation/SQLTransformer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SQLTransformer.java	13 Mar 2003 14:22:56 -0000	1.3
  +++ SQLTransformer.java	13 Mar 2003 15:10:56 -0000	1.4
  @@ -1046,7 +1046,7 @@
                   }
               }
               
  -            String query = StringUtils.replace(sb.toString(), "\r", " ", -1);
  +            String query = StringUtils.replace(sb.toString().trim(), "\r", " ", -1);
               // Test, if this is an update (by comparing with select)
               if ( !isstoredprocedure && !isupdate) {
                   if (query.length() > 6 && !query.substring(0,6).equalsIgnoreCase("SELECT"))
{
  
  
  

Mime
View raw message