mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 06:21:11 +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:
parent
9eebfb48be
commit
8e0be7cc59
@ -77,5 +77,21 @@ protected String getListDatabasesQuery() {
|
|||||||
protected String getSchemaQuery() {
|
protected String getSchemaQuery() {
|
||||||
return "SELECT SCHEMA_NAME()";
|
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 + "]";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user