Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8012

QueryModel IN should allow integer/long parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.1, 5.4.2
    • Fix Version/s: 5.6.0-HF08, 5.7.1
    • Component/s: Core VCS

      Description

      I have a NXQL query which contains a WHERE someid in ?, and then I use the QueryModel.getDocuments to execute the query.
      The datatype of someid in the database is not String/VARCHAR, but an INTEGER/LONG.

      I am not able to execute this query, since the NXQL is not expanded into proper JDBC.

      Long[] ids;
      Object[] params = new Object[] { section, ids};
      DocumentModelList res = qm.getDocuments(session, params);
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: