sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-1034: Fix SQL Azure database may return table columns in inconsistent order
Date Mon, 20 May 2013 14:45:46 GMT
Updated Branches:
  refs/heads/trunk fd756a0c4 -> 0bd1e8935


SQOOP-1034: Fix SQL Azure database may return table columns in inconsistent order

(Shuaishuai Nie 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/0bd1e893
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/0bd1e893
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/0bd1e893

Branch: refs/heads/trunk
Commit: 0bd1e8935333156297f917f37787c62e0b9357d8
Parents: fd756a0
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Mon May 20 07:44:26 2013 -0700
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Mon May 20 07:44:26 2013 -0700

----------------------------------------------------------------------
 .../org/apache/sqoop/manager/SQLServerManager.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/0bd1e893/src/java/org/apache/sqoop/manager/SQLServerManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/manager/SQLServerManager.java b/src/java/org/apache/sqoop/manager/SQLServerManager.java
index ed9eaf8..88254a8 100644
--- a/src/java/org/apache/sqoop/manager/SQLServerManager.java
+++ b/src/java/org/apache/sqoop/manager/SQLServerManager.java
@@ -143,6 +143,13 @@ public class SQLServerManager
   }
 
   @Override
+  protected String getListColumnsQuery(String tableName) {
+    return
+      super.getListColumnsQuery(tableName)
+    + "  ORDER BY ORDINAL_POSITION";
+  }
+  
+  @Override
   public String escapeColName(String colName) {
     return escapeObjectName(colName);
   }


Mime
View raw message