Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1178

Sqoop2: get connections for connector columns out of order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.99.2
    • 1.99.3
    • None
    • None

    Description

      Compare the select statement with how it's used:

        // DML: Select all connections for a specific connector.
        public static final String STMT_SELECT_CONNECTION_FOR_CONNECTOR =
          "SELECT "
          + COLUMN_SQN_ID + ", "
          + COLUMN_SQN_NAME + ", "
          + COLUMN_SQN_CONNECTOR + ", "
          + COLUMN_SQN_CREATION_USER + ", "
          + COLUMN_SQN_CREATION_DATE + ", "
          + COLUMN_SQN_ENABLED + ", "
          + COLUMN_SQN_UPDATE_USER + ", "
          + COLUMN_SQN_UPDATE_DATE
          + " FROM " + TABLE_SQ_CONNECTION
          + " WHERE " + COLUMN_SQN_CONNECTOR + " = ?";
      
      long id = rsConnection.getLong(1);
      String name = rsConnection.getString(2);
      long connectorId = rsConnection.getLong(3);
      boolean enabled = rsConnection.getBoolean(4);
      String creationUser = rsConnection.getString(5);
      Date creationDate = rsConnection.getTimestamp(6);
      String updateUser = rsConnection.getString(7);
      Date lastUpdateDate = rsConnection.getTimestamp(8);
      

      The column "enabled" is misplaced.

      Attachments

        1. SQOOP-1178.0.patch
          0.8 kB
          Abraham Elmahrek

        Issue Links

          Activity

            People

              abec Abraham Elmahrek
              abec Abraham Elmahrek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: