sqoop-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/SQOOP-1178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13747003#comment-13747003
] 

Hudson commented on SQOOP-1178:
-------------------------------

SUCCESS: Integrated in Sqoop2-hadoop100 #558 (See [https://builds.apache.org/job/Sqoop2-hadoop100/558/])
SQOOP-1178: Sqoop2: get connections for connector columns out of order (jarcec: https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=22f6ca5a403e4690749bf5e0427e744c39d1a884)
* repository/repository-derby/src/main/java/org/apache/sqoop/repository/derby/DerbySchemaQuery.java

                
> 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
>             Fix For: 1.99.3
>
>         Attachments: SQOOP-1178.0.patch
>
>
> 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