5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-02 17:59:21 +08:00

SQOOP-521. Import fails on tables with names containing hyphens ( - ).

(Abhijeet Gaikwad via Jarek Jarcec Cecho)


git-svn-id: https://svn.apache.org/repos/asf/sqoop/trunk@1366886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jarek Jarcec Cecho 2012-07-29 18:27:45 +00:00
parent 9eebfb48be
commit 8e0be7cc59

View File

@ -77,5 +77,21 @@ protected String getListDatabasesQuery() {
protected String getSchemaQuery() {
return "SELECT SCHEMA_NAME()";
}
@Override
public String escapeColName(String colName) {
if (null == colName) {
return null;
}
return "[" + colName + "]";
}
@Override
public String escapeTableName(String tableName) {
if (null == tableName) {
return null;
}
return "[" + tableName + "]";
}
}