5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-06 21:23:03 +08:00

SQOOP-953: Sqoop2: Integration: Schema support

(Jarek Jarcec Cecho via Kate Ting)
This commit is contained in:
Kate Ting 2013-03-24 12:07:32 -04:00
parent 2237d94e66
commit cc506b9ebf
4 changed files with 24 additions and 0 deletions

View File

@ -104,6 +104,15 @@ public String nullConstant() {
return "NULL"; return "NULL";
} }
/**
* True if the underlying database supports custom schemes (namespaces).
*
* @return
*/
public boolean isSupportingScheme() {
return false;
}
public String getJdbcDriver() { public String getJdbcDriver() {
return null; return null;
} }

View File

@ -76,6 +76,11 @@ public String escapeValueString(String value) {
return "'" + value + "'"; return "'" + value + "'";
} }
@Override
public boolean isSupportingScheme() {
return true;
}
public String escape(String entity) { public String escape(String entity) {
return "\"" + entity + "\""; return "\"" + entity + "\"";
} }

View File

@ -72,6 +72,11 @@ public String escapeValueString(String value) {
return "'" + value + "'"; return "'" + value + "'";
} }
@Override
public boolean isSupportingScheme() {
return true;
}
@Override @Override
public String getJdbcDriver() { public String getJdbcDriver() {
return DRIVER; return DRIVER;

View File

@ -72,6 +72,11 @@ public String escapeValueString(String value) {
return "'" + value + "'"; return "'" + value + "'";
} }
@Override
public boolean isSupportingScheme() {
return true;
}
@Override @Override
public String getJdbcDriver() { public String getJdbcDriver() {
return DRIVER; return DRIVER;