sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-657: ant checkstyle results in errors
Date Sun, 11 Nov 2012 23:31:15 GMT
Updated Branches:
  refs/heads/trunk c0a370d57 -> 95098af0e


SQOOP-657: ant checkstyle results in errors

(Alexander Alten-Lorenz via Jarek Jarcec Cecho)


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

Branch: refs/heads/trunk
Commit: 95098af0e0c62826f469ea6ed1b7420d2cf55abb
Parents: c0a370d
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Sun Nov 11 15:30:29 2012 -0800
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Sun Nov 11 15:30:29 2012 -0800

----------------------------------------------------------------------
 .../sqoop/manager/DirectPostgresqlManager.java     |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/95098af0/src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java b/src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java
index 7ac1a79..dba732c 100644
--- a/src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java
+++ b/src/java/org/apache/sqoop/manager/DirectPostgresqlManager.java
@@ -195,10 +195,12 @@ public class DirectPostgresqlManager
       } else {
         if ("bool".equalsIgnoreCase(columnTypes.get(col))) {
           sb.append(String.format("case when %s=true then 'TRUE' "
-          + "when %s=false then 'FALSE' end as %s", colEscaped, colEscaped, colEscaped));
+          + "when %s=false then 'FALSE' end as %s",
+          colEscaped, colEscaped, colEscaped));
         } else if ("bit".equalsIgnoreCase(columnTypes.get(col))) {
           sb.append(String.format("case when %s=B'1' then 'TRUE' "
-          + "when %s=B'0' then 'FALSE' end as %s", colEscaped, colEscaped, colEscaped));
+          + "when %s=B'0' then 'FALSE' end as %s",
+          colEscaped, colEscaped, colEscaped));
         } else {
           sb.append(colEscaped);
         }


Mime
View raw message