sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kathl...@apache.org
Subject git commit: SQOOP-1027: Incremental import is not properly escaping table name when loading maximal value
Date Sun, 05 May 2013 07:10:02 GMT
Updated Branches:
  refs/heads/trunk aa6813e36 -> 403f0aece


SQOOP-1027: Incremental import is not properly escaping table name when loading maximal value

(Jarek Jarcec Cecho via Kate Ting)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/403f0aec
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/403f0aec
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/403f0aec

Branch: refs/heads/trunk
Commit: 403f0aece216ae066ebee957c88a19e06d265df0
Parents: aa6813e
Author: Kate Ting <kathleen@apache.org>
Authored: Sun May 5 03:08:45 2013 -0400
Committer: Kate Ting <kathleen@apache.org>
Committed: Sun May 5 03:08:45 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/sqoop/tool/ImportTool.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/403f0aec/src/java/org/apache/sqoop/tool/ImportTool.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/tool/ImportTool.java b/src/java/org/apache/sqoop/tool/ImportTool.java
index 10f0cb9..2627726 100644
--- a/src/java/org/apache/sqoop/tool/ImportTool.java
+++ b/src/java/org/apache/sqoop/tool/ImportTool.java
@@ -166,7 +166,7 @@ public class ImportTool extends com.cloudera.sqoop.tool.BaseSqoopTool
{
     String query;
 
     sb.append("SELECT MAX(");
-    sb.append(options.getIncrementalTestColumn());
+    sb.append(manager.escapeTableName(options.getIncrementalTestColumn()));
     sb.append(") FROM ");
 
     if (options.getTableName() != null) {


Mime
View raw message