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

Make tag upgrade procedure for MySQL case insensitive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4.1
    • Fix Version/s: None
    • Component/s: Core VCS, Tagging
    • Environment:
      MySQL

      Description

      The procedure to upgrade existing tags checks if the old tag service was already used with the query

      SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 'NXP_TAGGING' AND TABLE_SCHEMA = SCHEMA();

      But we don't know if tables will be created with lower or upper case. Therefore we need to use a LIKE clause in the query:

      SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 'NXP_TAGGING' AND TABLE_SCHEMA = SCHEMA();

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: