sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Elmahrek (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SQOOP-1178) Sqoop2: get connections for connector columns out of order
Date Wed, 21 Aug 2013 20:25:52 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Abraham Elmahrek reassigned SQOOP-1178:
---------------------------------------

    Assignee: Abraham Elmahrek
    
> 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
>            Assignee: 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

Mime
View raw message