Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1615

Bad Error Message when IDCOLUMN's value is actually null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • ManifoldCF 2.13
    • ManifoldCF 2.14
    • JDBC connector
    • None

    Description

      In the edge case that the id column is null, the error message doesn't suggest that.

       

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

       

       

      Also, should it entirely fail if one $IDCOLUMN record is null?

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            michaelcizmar Michael Cizmar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: