diff options
author | Reynold Xin <rxin@databricks.com> | 2015-05-29 13:38:37 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-05-29 13:38:37 -0700 |
commit | 94f62a4979e4bc5f7bf4f5852d76977e097209e6 (patch) | |
tree | 8bdc73d6326fab1519a192fa1b8d07c583608059 /sql/core | |
parent | 6181937f315480543d28e542d43269cfa591e9d0 (diff) | |
download | spark-94f62a4979e4bc5f7bf4f5852d76977e097209e6.tar.gz spark-94f62a4979e4bc5f7bf4f5852d76977e097209e6.tar.bz2 spark-94f62a4979e4bc5f7bf4f5852d76977e097209e6.zip |
[SPARK-7940] Enforce whitespace checking for DO, TRY, CATCH, FINALLY, MATCH, LARROW, RARROW in style checker.
…
Author: Reynold Xin <rxin@databricks.com>
Closes #6491 from rxin/more-whitespace and squashes the following commits:
f6e63dc [Reynold Xin] [SPARK-7940] Enforce whitespace checking for DO, TRY, CATCH, FINALLY, MATCH, LARROW, RARROW in style checker.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/jdbc/JDBCRDD.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/jdbc/JDBCRDD.scala b/sql/core/src/main/scala/org/apache/spark/sql/jdbc/JDBCRDD.scala index 0bdb68e8ac..2d8d950038 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/jdbc/JDBCRDD.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/jdbc/JDBCRDD.scala @@ -262,7 +262,7 @@ private[sql] class JDBCRDD( } private def escapeSql(value: String): String = - if (value == null) null else StringUtils.replace(value, "'", "''") + if (value == null) null else StringUtils.replace(value, "'", "''") /** * Turns a single Filter into a String representing a SQL expression. |