sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kathl...@apache.org
Subject sqoop git commit: SQOOP-2767: Test is failing SystemImportTest (Jarek Jarcec Cecho via Kate Ting)
Date Sat, 16 Jan 2016 22:19:36 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk 926d92bac -> 55d8b4a7b


SQOOP-2767: Test is failing SystemImportTest
 (Jarek Jarcec Cecho via Kate Ting)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/55d8b4a7
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/55d8b4a7
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/55d8b4a7

Branch: refs/heads/trunk
Commit: 55d8b4a7b0dc1a1e0c93fce0ded37481710cd8da
Parents: 926d92b
Author: Kate Ting <kathleen@apache.org>
Authored: Sat Jan 16 14:18:58 2016 -0800
Committer: Kate Ting <kathleen@apache.org>
Committed: Sat Jan 16 14:18:58 2016 -0800

----------------------------------------------------------------------
 .../org/apache/sqoop/manager/oracle/OraOopDBRecordReader.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/55d8b4a7/src/java/org/apache/sqoop/manager/oracle/OraOopDBRecordReader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/manager/oracle/OraOopDBRecordReader.java b/src/java/org/apache/sqoop/manager/oracle/OraOopDBRecordReader.java
index 45a88ef..f3ee4aa 100644
--- a/src/java/org/apache/sqoop/manager/oracle/OraOopDBRecordReader.java
+++ b/src/java/org/apache/sqoop/manager/oracle/OraOopDBRecordReader.java
@@ -280,8 +280,13 @@ class OraOopDBRecordReader<T extends SqoopRecord> extends
       }
       String fieldName = fieldNames[i];
 
+      String unescapedFieldName = fieldName;
+      if (fieldName.charAt(0) == '"' && fieldName.charAt(fieldName.length() - 1)
== '"') {
+        unescapedFieldName = fieldName.substring(1, fieldName.length() - 1);
+      }
+
       OracleTableColumn oracleTableColumn =
-          tableColumns.findColumnByName(fieldName);
+          tableColumns.findColumnByName(unescapedFieldName);
       if (oracleTableColumn != null) {
         if (oracleTableColumn.getDataType().equals(
             OraOopConstants.Oracle.URITYPE)) {


Mime
View raw message