incubator-chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r956297 - /hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
Date Sat, 19 Jun 2010 21:15:10 GMT
Author: eyang
Date: Sat Jun 19 21:15:10 2010
New Revision: 956297

URL: http://svn.apache.org/viewvc?rev=956297&view=rev
Log:
CHUKWA-489. Fixed malformed SQL in MetricDataLoader when values contain single quote character.
(Kirk True via Eric Yang)

Modified:
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java?rev=956297&r1=956296&r2=956297&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
(original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/dataloader/MetricDataLoader.java
Sat Jun 19 21:15:10 2010
@@ -163,6 +163,8 @@ public class MetricDataLoader implements
         sb.append( "\\\"" ); 
       } else if( ch == '\\' ) {
         sb.append( "\\\\" ); 
+      } else if( ch == '\'' ) {
+        sb.append( "\\'" );
       } else {
         sb.append( ch );
       }



Mime
View raw message