You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/08/21 23:36:53 UTC

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

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

ASF subversion and git services commented on SQOOP-1178:
--------------------------------------------------------

Commit 22f6ca5a403e4690749bf5e0427e744c39d1a884 in branch refs/heads/sqoop2 from [~jarcec]
[ https://git-wip-us.apache.org/repos/asf?p=sqoop.git;h=22f6ca5 ]

SQOOP-1178: Sqoop2: get connections for connector columns out of order

(Abraham Elmahrek via Jarek Jarcec Cecho)

                
> 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
>         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