[
https://issues.apache.org/jira/browse/CONNECTORS-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl Wright resolved CONNECTORS-1615.
-------------------------------------
Resolution: Won't Fix
Fix Version/s: ManifoldCF 2.14
> Bad Error Message when IDCOLUMN's value is actually null
> --------------------------------------------------------
>
> Key: CONNECTORS-1615
> URL: https://issues.apache.org/jira/browse/CONNECTORS-1615
> Project: ManifoldCF
> Issue Type: Bug
> Components: JDBC connector
> Affects Versions: ManifoldCF 2.13
> Reporter: Michael Cizmar
> Assignee: Karl Wright
> Priority: Major
> Fix For: ManifoldCF 2.14
>
>
> In the edge case that the id column is null, the error message doesn't
> suggest that.
>
> {code:java}
> Object o = row.getValue(JDBCConstants.idReturnColumnName);
> if (o == null)
> throw new ManifoldCFException("Bad seed query; doesn't return
> $(IDCOLUMN) column. Try using quotes around $(IDCOLUMN) variable, e.g.
> \"$(IDCOLUMN)\", or, for MySQL, select \"by label\" in your repository
> connection.");
> String idValue = JDBCConnection.readAsString(o);
> {code}
>
>
> Also, should it entirely fail if one $IDCOLUMN record is null?
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)