sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arv...@apache.org
Subject svn commit: r1159949 - /incubator/sqoop/trunk/src/java/com/cloudera/sqoop/manager/SQLServerManager.java
Date Sun, 21 Aug 2011 07:33:42 GMT
Author: arvind
Date: Sun Aug 21 07:33:42 2011
New Revision: 1159949

URL: http://svn.apache.org/viewvc?rev=1159949&view=rev
Log:
SQOOP-320. Use Information Schema for SQLServer.

(Bilung Lee via Arvind Prabhakar)

Modified:
    incubator/sqoop/trunk/src/java/com/cloudera/sqoop/manager/SQLServerManager.java

Modified: incubator/sqoop/trunk/src/java/com/cloudera/sqoop/manager/SQLServerManager.java
URL: http://svn.apache.org/viewvc/incubator/sqoop/trunk/src/java/com/cloudera/sqoop/manager/SQLServerManager.java?rev=1159949&r1=1159948&r2=1159949&view=diff
==============================================================================
--- incubator/sqoop/trunk/src/java/com/cloudera/sqoop/manager/SQLServerManager.java (original)
+++ incubator/sqoop/trunk/src/java/com/cloudera/sqoop/manager/SQLServerManager.java Sun Aug
21 07:33:42 2011
@@ -32,7 +32,7 @@ import com.cloudera.sqoop.util.ExportExc
  * Manages connections to SQLServer databases. Requires the SQLServer JDBC
  * driver.
  */
-public class SQLServerManager extends GenericJdbcManager {
+public class SQLServerManager extends InformationSchemaManager {
 
   public static final Log LOG = LogFactory.getLog(
       SQLServerManager.class.getName());
@@ -66,5 +66,15 @@ public class SQLServerManager extends Ge
   public String getCurTimestampQuery() {
       return "SELECT CURRENT_TIMESTAMP";
   }
+
+  @Override
+  protected String getListDatabasesQuery() {
+    return "SELECT NAME FROM SYS.DATABASES";
+  }
+
+  @Override
+  protected String getSchemaQuery() {
+    return "SELECT SCHEMA_NAME()";
+  }
 }
 



Mime
View raw message