Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3280

HQL Syntax Error in HandleDAOImpl.java

    Details

    • Attachments:
      1
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      Testing the dspace-6.0rc2, when I run the following dspace commandline

      ./dspace update-handle-prefix 123456789 11746
      

      The exception attached in file happens during the update.

      Exploring the stacktrace, I noticed that there was an error in the HQL syntax in HandleDAOImpl.updateHandlesWithNewPrefix(), at line 86.

      To solve this error, the following changes are needed:

      String hql = "UPDATE Handle set handle = concat(:newPrefix,'/',handle_id) WHERE handle like concat(:oldPrefix,'%')";
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adorno.facundo Facundo Gabriel Adorno (sedici.unlp.edu.ar)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: