Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5141

Using As in table aliases in filter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: None
    • Labels:
      None
    • Affected Branches:
      MOODLE_26_STABLE

      Description

      I'm using this plugin with Oracle and I have the following problem with filters:
      Oracle doesn't accept the keyword AS when creating table alias.
      For Oracle the right syntax is:
      table_name alias_name

      For example the right syntax for this query:
      SELECT ra.userid
      FROM

      {role_assignments} AS ra
      it would be:
      SELECT ra.userid
      FROM {role_assignments}

      ra

      Removing AS doesn't create any problem with MySQL because AS is optional but it would be very useful for people using Oracle

        Attachments

          Activity

            People

            Assignee:
            jleyva Juan Leyva
            Reporter:
            sara.cenni Sara Cenni
            Participants:
            Component watchers:
            Juan Leyva, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: