Michael Cizmar created CONNECTORS-1615:
------------------------------------------
Summary: 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
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)