logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1567108 - /logging/log4j/trunk/src/main/java/org/apache/log4j/jdbc/JDBCAppender.java
Date Tue, 11 Feb 2014 13:22:18 GMT
Author: ggregory
Date: Tue Feb 11 13:22:18 2014
New Revision: 1567108

URL: http://svn.apache.org/r1567108
Log:
Better param name.

Modified:
    logging/log4j/trunk/src/main/java/org/apache/log4j/jdbc/JDBCAppender.java

Modified: logging/log4j/trunk/src/main/java/org/apache/log4j/jdbc/JDBCAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/trunk/src/main/java/org/apache/log4j/jdbc/JDBCAppender.java?rev=1567108&r1=1567107&r2=1567108&view=diff
==============================================================================
--- logging/log4j/trunk/src/main/java/org/apache/log4j/jdbc/JDBCAppender.java (original)
+++ logging/log4j/trunk/src/main/java/org/apache/log4j/jdbc/JDBCAppender.java Tue Feb 11 13:22:18
2014
@@ -323,13 +323,13 @@ public class JDBCAppender extends org.ap
   /**
    *
    */
-  public void setSql(String s) {
-    sqlStatement = s;
+  public void setSql(String sql) {
+    sqlStatement = sql;
     if (getLayout() == null) {
-        this.setLayout(new PatternLayout(s));
+        this.setLayout(new PatternLayout(sql));
     }
     else {
-        ((PatternLayout)getLayout()).setConversionPattern(s);
+        ((PatternLayout)getLayout()).setConversionPattern(sql);
     }
   }
 



Mime
View raw message