You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Abraham Elmahrek (JIRA)" <ji...@apache.org> on 2013/08/21 22:25:52 UTC

[jira] [Created] (SQOOP-1178) Sqoop2: get connections for connector columns out of order

Abraham Elmahrek created SQOOP-1178:
---------------------------------------

             Summary: Sqoop2: get connections for connector columns out of order
                 Key: SQOOP-1178
                 URL: https://issues.apache.org/jira/browse/SQOOP-1178
             Project: Sqoop
          Issue Type: Bug
    Affects Versions: 1.99.2
            Reporter: Abraham Elmahrek


Compare the select statement with how it's used:
{code}
  // 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 + " = ?";
{code}
{code}
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);
{code}

The column "enabled" is misplaced.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira