ibatis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbe...@apache.org
Subject svn commit: r740304 - in /ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql: SqlText.java stat/StaticSql.java
Date Tue, 03 Feb 2009 13:44:21 GMT
Author: cbegin
Date: Tue Feb  3 13:44:20 2009
New Revision: 740304

URL: http://svn.apache.org/viewvc?rev=740304&view=rev
Log:
Removed linebreak replacement and trimming of SQL strings.  

Modified:
    ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/SqlText.java
    ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/stat/StaticSql.java

Modified: ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/SqlText.java
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/SqlText.java?rev=740304&r1=740303&r2=740304&view=diff
==============================================================================
--- ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/SqlText.java
(original)
+++ ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/SqlText.java
Tue Feb  3 13:44:20 2009
@@ -30,8 +30,8 @@
   }
 
   public void setText(String text) {
-    this.text = text.replace('\r', ' ').replace('\n', ' ').replace('\t', ' ');
-    this.isWhiteSpace = text.trim().length() == 0;
+    this.text = text;
+    this.isWhiteSpace = false;
   }
 
   public boolean isWhiteSpace() {

Modified: ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/stat/StaticSql.java
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/stat/StaticSql.java?rev=740304&r1=740303&r2=740304&view=diff
==============================================================================
--- ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/stat/StaticSql.java
(original)
+++ ibatis/trunk/java/ibatis-2/ibatis-2-core/src/com/ibatis/sqlmap/engine/mapping/sql/stat/StaticSql.java
Tue Feb  3 13:44:20 2009
@@ -25,7 +25,7 @@
   private String sqlStatement;
 
   public StaticSql(String sqlStatement) {
-    this.sqlStatement = sqlStatement.replace('\r', ' ').replace('\n', ' ');
+    this.sqlStatement = sqlStatement;
   }
 
   public String getSql(StatementScope statementScope, Object parameterObject) {



Mime
View raw message